🔥 0
0 XP
Lv.1 Beginner
FAQ
Log In
Home
Python
Getting Started with Python
While Loops
Count to Five
1
2
3
4
5
6
7
8
9
10
Your task
Lesson: Repeating with While
Exercise 1 · Chapter: While Loops
Required
+50 XP
Count to Five
Print the numbers 1 through 5, each on its own line, using a
while
loop.
1 2 3 4 5
Need a hint?
3 available · costs 5 XP each
Reveal hint (-5 XP)
python
Reset
Run
Visualize
Submit
9
1
Output
Run your code to see the output here.
Previous · Quiz
While Loops Quiz
Exercise 1 of 10
Next · Exercise
Countdown