Week 5 - In Class Examples

Handout 3 practice on for loops

collectVowelsFromSentence_p10.py problem 10
multTable-p9.py - problem 9 - multiplication table uses nested loops
randomNumbers-p8.py - problems 8
olympic_years_p7.py - problems 7

on while True, break and continue

break.py shows two ways of encoding a validation loop. Using while True, break and continue should be avoided.