← Back to the lesson: Loops
Count to 5
The exercise
Use a for loop to print numbers from 1 to 5.
Each number on a new line.
Starter code
# Print 1 to 5 / Выведите от 1 до 5
Write the code in the browser and run it — no installation needed.