Program to print numbers from 1 to 10 using a while loop in Python:

 # While loop in Python - Printing numbers from 1 to 10

num = 1

while num <= 10:

    print(num)

    num += 1


Comments

Popular posts from this blog

Iris Flowers Classification ML Project with Code

Linear Regression Model for House Price Prediction in Python

Hello World Python Code with Explanation