print(): This function is used standard output
The included code stub will read an integer, n, from STDIN.
Without using any string methods, try to print the following:
Note that “…” represents the consecutive values in between.
Print the string 12345.
The first line contains an integer .
Print the list of integers from 1 through n as a string, without spaces.
Sample Input 0
Sample Output 0
if __name__ == '__main__': n = int(input()) for i in range(1,n+1): print(i,end ="")
Disclaimer: These problems are originally created and published by HackerRank, we only provide solutions to those problems.Hence, doesn’t guarantee the truthfulness of the problem. This is only for information purposes.