Exercise
For Loop Exercise: Print Numbers
In this exercise, you’ll practice using a for loop to print numbers.
Task
Write a Python program that:
- Uses a
forloop - Prints numbers from 1 to 10, each on a new line
- Add a comment explaining what the loop does
Example Output