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

Popular posts from this blog

Simple Python Program Code for Snake Game

Project 01: Python Code for Music Recommendation with Explanation

Iris Flowers Classification ML Project with Code