practice - Tues Oct 13
what we did
Attached are the programs we wrote
in class, euler2.py, euler4.py, euler9.py .
We started but didn't finish euler4,
the palindrome one.
aside
Two other python resources worth checking out :
Discuss homework & midterm projects
Do at least the babysitter problem in class.
Include in the discussion at least :
- What is your recipe of how to do this?
- What choices do you have for representing time?
- What are smaller tasks that fit well in functions?
- Does your method work for times after midnight?
What are you thinking about for your midterm projects?
Where we are
Believe it or not, at this point you've
seen enough (loops, arrays, conditionals,
functions, strings, numbers, input & output)
to do many real programming projects.
While there are still more concepts coming
(creating objects, richer data structures,
recursion), at this point what you really
need most is practice.
This week: read chapter 9, "simulation and design".
We'll look at that on Thursday.
Next week: no homework (Hendricks) other than catching up. Work on your projects, due the week after.
Practice
Depending on time, we'll work more examples together in class,
from projecteuler.net problems, possibly
- 4 (palindrome numbers)
- 9 (pythogorean)
- 22 (name scores)
- 55 (Lychrel numbers)