print numbers from 1 to 100 in python

Solutions on MaxInterview for print numbers from 1 to 100 in python by the best coders in the world

showing results for - "print numbers from 1 to 100 in python"
Mika
04 May 2016
1# range(a,b,s) allows you to iterate from a to the closest number 
2# before b (excluded) with step s (default s=1)
3# a,b,s are integers
4
5for i in range(1, 101):
6  print(1, end = ' ') # prints 1 2 3 ... 99 100