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
|
3409 Discussions
|
Please Login in order to post a comment
def num(n): for i in range(1,n+1): product = n -(n-i) print(product, end="")
n = int(input("enter the number : ") num(n)
if name == 'main': n = int(input()) i = 1 while(i<=n): print(i,end='') i=i+1
This is what I came up with.