We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Introduction
- Print Function
- Discussions
Print Function
Print Function
Sort by
recency
|
3305 Discussions
|
Please Login in order to post a comment
n = int(input()) for i in range(1, n+1): print(i, end="")
y="" for x in range(1, n+1): y=y+str(x) print(y)
n = int(input()) nums = list(range(1, n + 1)) result = ''.join(map(str, nums))
print(result)