Common code patterns: iterative programs
This subject is aimed at students with little or no programming experience. It aims to provide students with an understanding of the role computation can play in solving problems. It also aims to help students, regardless of their major, to feel justifiably confident of their ability to write small programs that allow them to accomplish useful goals. The class will use the Python™ programming language.
Iteration: Loops section of Python Programming | Tuples: Tuples section from Dive Into Python | The tuples and sequences section of the Python Tutorial | More on traversing and slicing strings: Chapter 7 of How to Think Like a Computer Scientist