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
|
3520 Discussions
|
Please Login in order to post a comment
n = int(input()) i = 0
while i < n: i += 1 print(i,end="")
Here is Print function solution - https://programmingoneonone.com/hackerrank-print-function-problem-solution-in-python.html
if name == 'main': n = int(input()) a = 1 for _ in range(n): print(_ + 1, end ="")
if name == 'main': n = int(input()) i =1 while i <= n: print(i, end="") i += 1
n = int(input()) for i in range(n): print(i+1,end="")
Efficient and Simple Code