Print Function
Hacker Rank Nerd Solution
Task (Hacker Rank Nerd Solution)
The included code stub will read an integer, , from STDIN.
Without using any string methods, try to print the following:
Note that "" represents the consecutive values in between.
Example
Print the string .
Input Format
The first line contains an integer .
Constraints
Output Format
Print the list of integers from through as a string, without spaces.
Sample Input 0
3
Sample Output 0
123Solution:if __name__ == '__main__': n = int(input()) for i in range(n): print (i+1, end="")
Print Function - Hacker Rank Nerd Solution
Reviewed by Sagar M B
on
September 24, 2020
Rating:
Reviewed by Sagar M B
on
September 24, 2020
Rating:

No comments: