Saturday, October 23, 2021

Print 1 To 10 Using For Loop in Python

 Machine Problem

 Write a Python program to print numbers from 1 to 10 using a for loop.

  I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.





Program Listing

# print_1_To_10.py
# Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
#
# Machine Problem
# Write a Python program to print numbers from 1 to 10 using a for loop.

print()
print("\tPrint 1 To 10 Using For Loop in Python")
print()
for a in range(1, 11):
print("\t",a, end=' ')
print("\n")
print("\tEnd of Program")
print()

No comments:

Post a Comment