Answers for "how to print 1 to 10 in python"

1

how to print numbers from 1 to 20 in python

for i in range(1, 21):
    print(i)
Posted by: Guest on November-25-2020
0

how to print 0 to 10 in python

#if Want to print 0 to 9
for i in range(0,10):
    print(i)
    i += 1
#if want to print 1 to 10
for i in range(0,10):
    i += 1
    print(i)
Posted by: Guest on August-07-2021

Code answers related to "how to print 1 to 10 in python"

Python Answers by Framework

Browse Popular Code Answers by Language