Print numbers from 1 to 10 Get link Facebook X Pinterest Email Other Apps April 18, 2023 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. Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment