You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) num = [] for i in range(int(n)): num.append(i + 1)
print("".join(str(item) for item in num))
Seems a little complicated but this is how my brain wanted to do it haha
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 →
if name == 'main': n = int(input()) num = [] for i in range(int(n)): num.append(i + 1)
print("".join(str(item) for item in num))
Seems a little complicated but this is how my brain wanted to do it haha