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
|
3488 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(input()) temp = "" for i in range(1,n+1): temp += str(i)
My code:
if name == 'main': n = int(input()) [print(i, end='') for i in range(1,n+1)]
one example in this code
My solution: