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 + 1

Your Objective

Countdown from 5 to 0.

main.py
Initializing Python Environment...