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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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)