You are viewing a single comment's thread. Return to all comments →
i have solved this on my own, i am very happy
if name == 'main': n = int(input())
z = ""
for i in range(1, n+1): if i <= n: z += str(i)
print(z)
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 →
i have solved this on my own, i am very happy
if name == 'main': n = int(input())
z = ""
for i in range(1, n+1): if i <= n: z += str(i)
print(z)