Lesson 17 of 34 · +80 xp

While Loop

Loop until false.

Explained simply

Your task

Write: while x > 0: x -= 1

while.py
▶ Output (python)
Click 'Run code' to execute your code in a real sandbox.
← Back