Python
Exercise 9 / 15
for and while Loops
Medium
18 points
Use a for loop to display numbers from 1 to 5.
Loops allow repeating code. The for loop iterates over a sequence (list, string, range).
Well done! 🎉
Your answer is correct! You earned 18 points.
Not quite...
Try again! You can do it.
Your code
Python
Result