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

Project 01: Python Code for Music Recommendation with Explanation

Iris Flowers Classification ML Project with Code