Professional Documents
Culture Documents
While Loops Lesson Plan
While Loops Lesson Plan
Lesson Plan
We introduced ‘while’ loops as a way of repeating the students’ guessing game for a
set number of tries. We chose to go with ‘while’ rather than ‘for’ because we felt that
Python’s implementation of ‘for’ was not as intuitive as ‘while’ implementation.
We explained the use of while loops on the board and gave them the worksheet
below for them to test and try.
Teaching challenges:
This class was in a way a test of how well our lessons were getting across to the
students. There was a clear difference perceivable between the students who
understood programming so far, and the students who were merely following
directions.
IEC 2015 - Python Programming
Week 7 - While loops
Worksheet
(1) We count from 5 -> 1
count = 5
count = 0
Example:
while count <= 5:
_______count = count + 1
Another example:
if guess == number:
_______print(‘Correct guess’)
count = 5
print(‘Bye!’)