You are viewing a single comment's thread. Return to all comments →
n = int(raw_input()) print(*range(1,n+1), sep='',end='\n', file= sys.stdout)
*range(start, end) - ' *' meaning all the element in range() from start to ends.
range() - you can google it how it works.
Hope this helps.
Seems like cookies are disabled on this browser, please enable them to open this website
Print Function
You are viewing a single comment's thread. Return to all comments →
n = int(raw_input()) print(*range(1,n+1), sep='',end='\n', file= sys.stdout)
*range(start, end) - ' *' meaning all the element in range() from start to ends.
range() - you can google it how it works.
Hope this helps.