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
|
3303 Discussions
|
Please Login in order to post a comment
n = int(input()) nums = list(range(1, n + 1)) result = ''.join(map(str, nums))
print(result)
f name == 'main': n = int(input()) for i in range(1,4): print(i, end = "")
that is working properly becausse we need starting from 1 to end before 4 and it give us 123
if name == 'main': n = int(input()) i=1 for i in range(i, n+1): print(i, end ='')