Week 4 - Practice Problems

Complete Practice problems on loops from Handout 3.

There are two sets of practice problems: on pages 3 and 4. They are due on coming Thursday and Monday, respectively.

These problems should be completed before you start working on your graded homework assignment. These can be done in collaboration with classmates, though each of you should create your own solution from scratch in a separate file. These practice problems will not be graded.


   Week 4 - In Class Examples

Examples from class

whileDemo.py simple demo of a counting loop
interest.py interest computing example from Handout 3
interestBetter.py expanded version of the interest computing example
practiceWhile.py - validation loop problem 3 from page 3 of Handout 3

More examples and solutions to practice problems

countingLoops.py simple demo of a counting loop using while and for
conditionalLoop.py conditional loop and input validation
enteravowel_p1.py Handout 3 problem 1
alphabeticWords_p4.py Handout 3 problem 6
stock_change_p6.py Handout 3 problem 6