SLIDE 1
1
1
Aaron Stevens
25 March 2009
CS101 Lecture 24: Python: Decision Making
2
Overview/Questions How do we control the flow of execution within - - PDF document
CS101 Lecture 24: Python: Decision Making Aaron Stevens 25 March 2009 1 Overview/Questions How do we control the flow of execution within our programs? How can a programs input alter the instructions that get executed? How
1
2
3
– Definite loops execute a fixed number of times. – Functions allow us to execute the same code an arbitrary number of times.
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
– 78 degrees and sun – 78 degrees and rain – 30 degrees and sun – 30 degrees and sleet
21
22
23
Available online at: http://openbookproject.net//thinkCSpy/