Answers for "print 1 to n 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

print from 1 to n in python

#To print a number from 1 to n (n being any number you want + 1, since python wont print the ranged number)
for i in range(1,n):
  print(i)
Posted by: Guest on November-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language