PYTHON CORE · LESSON 16
while loop
Repeat while you're right. · about 13 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Reprint the loop. Both lines within it must have an indentation.
step = 1
while step < 4:
print(step)
step = step + 1Open the editor for class workSolve it yourself
With while, output the numbers 1, 2, 3. Start with n = 1 and increase n per unit within the loop.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework