SLIDE 1
1
1
Aaron Stevens
30 March 2009
CS101 Lecture 25: Python: Repetition
Patterns: Counter-Controlled, Interactive, and Sentinel
2
Overview/Questions Review: Flow of Control The idea of iteration: - - PDF document
CS101 Lecture 25: Python: Repetition Patterns: Counter-Controlled, Interactive, and Sentinel Aaron Stevens 30 March 2009 1 Overview/Questions Review: Flow of Control The idea of iteration: how to conditionally repeat statements
1
Patterns: Counter-Controlled, Interactive, and Sentinel
2
3
4
5
6
7
8
9
10
11
12
13
14
– indefinite loop version, interactive pattern.
15
16
– indefinite loop version, sentinel pattern
17
18
Available online at: http://openbookproject.net//thinkCSpy/