I usually start with questions from class, problems encountered
and solved (or not). But I don't want to use the whole class for that
- which is likely to happen. So I will set a time limit for other
stuff (perhaps 30 minutes), then ask for questions, and prioritize
them.
Perhaps I'll ask for questions first, write them down, then return to
them.
factor3.py
Separate the logic from the user interface by defining a function.
Put the mathematics in a separate file (a module). Provide two
functions each of which finds the smallest factor of its input. Start
of algorithm analysis.
factor4.py fsf.py
I probably won't get here:
factor5.py
Command line arguments. Start thinking about lists.
I pretty much followed this plan. Spent a fair amount of time talking
about speeding up the algorithm, generalizing fsf1() -
wrote pseudocode (halfway between mathematics and a computer program).