Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Fix the Step

This program should count backwards from 5 to 1, but nothing prints. Fix it!

Expected output:

text
5
4
3
2
1

Hint: When counting backwards, the step should be negative.

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python
for i in range(5, 0, 1):
print(i)