티스토리 뷰
[1, 150] 범위의 정수 n을 입력받는다.
1부터 n까지 정수를 순서대로 이어서 출력한다.
if __name__ == '__main__':
n = int(input())
print(*range(1,n+1), sep="")

Print Function | HackerRank
Learn to use print as a function
www.hackerrank.com
'Hackerrank > Python' 카테고리의 다른 글
Find the Runner-Up Score! (0) | 2022.02.05 |
---|---|
List Comprehension (0) | 2022.02.05 |
Write a function (0) | 2022.02.05 |
Loops (0) | 2022.02.05 |
Python: Division (0) | 2022.02.05 |