Lesson 10: The While Loop
The for loop counts. The while loop repeats AS LONG AS a condition is true.
Infinite Danger!
If the condition never becomes false, the program never stops!
x = 0
while x < 3:
print(x)
x = x + 1Your Objective
Countdown from 5 to 0.