You are viewing a single comment's thread. Return to all comments →
12345...N ---should be string as mentioned in question
n = int(input()) result = ''
for i in range(1, n + 1): result += f"{i}"
print(result)
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 →
12345...N ---should be string as mentioned in question
n = int(input())
result = ''
for i in range(1, n + 1):
result += f"{i}"
print(result)