You are viewing a single comment's thread. Return to all comments →
You don't need sep and try input() instead of int(raw_input())
sep
input()
int(raw_input())
Edit: Wow the idea of putting x+1 into lambda instead of in range is genius!
lambda
Old solution
map(lambda x: print(x,end=''), range(1,input()+1))
New = Shorter!
map(lambda x: print(x+1,end=''),range(input())
Note: This is for Python 2, Python 3 needs int() and list()
int() and list()
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 →
You don't need
sep
and tryinput()
instead ofint(raw_input())
Edit: Wow the idea of putting x+1 into
lambda
instead of in range is genius!Old solution
New = Shorter!
Note: This is for Python 2, Python 3 needs
int() and list()