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

Simple Python Program Code for Snake Game

Iris Flowers Classification ML Project with Code

Data exploration and scatter plot visualization in Python using Pandas and Matplotlib