Problem Name: Python -
In this HackerRank Functions in PYTHON problem solution,
The included code stub will read an integer, n, om STDIN.
Without using any string methods, try to print the following:
1,2,3 .... n
Note that " ... " represents the consecutive values in between.
n = 5
Print the string 12345.
The first line contains an integer n.
1 <= n <= 150
Print the list of integers from 1 through n as a string, without spaces.
Sample Input 0
Sample Output 0
#1 Code Example with Python Programming
Copy The Code & Try With Live Editor
from __future__ import print_function import sys, os, time a=int(input()) for i in range (1,a+1): print(i, sep=' ', end='') # time.sleep(1)