Print numbers from 1 to 10

for i in range(1, 11):

    print(i)



This program uses a for loop to print the numbers from 1 to 10. The range function is used to create a sequence of numbers from 1 to 10, which are then printed to the console.

Comments