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

Iris Flowers Classification ML Project with Code

Simple Python Program Code for Snake Game

Linear Regression Model for House Price Prediction in Python