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
|
3152 Discussions
|
Please Login in order to post a comment
why this isn't possible? :
if name == 'main': n = int(input())
def run(n): for num in range(1, n + 1): print(num, end='')
if name == 'main': n = int(input()) run(n)
n = int(input()) i=1 while i<=n: print(i,end="") i=i+1
if name == 'main': n = int(input()) for i in range(1,n+1): print(i,end="")