Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 683 Bytes

Print_Function.md

File metadata and controls

50 lines (30 loc) · 683 Bytes

Day #07 - Print Function

Problem

The included code stub will read an integer, n, from STDIN.

Without using any string methods, try to print the following:

123...n

Note that "..." represents the consecutive values in between.

Example

n = 5

Print the string 12345.

Input Format

The first line contains an integer n.

Constraints

1 ≤ n ≤ 150

Output Format

Print the list of integers from 1 through n as a string, without spaces.

Sample Input


3

Sample Output


123

Solution

if __name__ == '__main__':
    n = int(input())
    for x in range(n):
        print(x+1, end =""),