print from 1 to n in python

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

showing results for - "print from 1 to n in python"
Alix
03 Mar 2016
1#To print a number from 1 to n (n being any number you want + 1, since python wont print the ranged number)
2for i in range(1,n):
3  print(i)