1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 사용자입력과 출력
>>> a = input()
Life is too short, you need python
>>> a
'Life is too short, you need python'
 
>>> number = input("숫자를 입력하세요: ")
숫자를 입력하세요: 3
>>> print(number)
3
 
# 한 줄에 결과값 출력
>>> for i in range(10):
...     print(i, end=' ')
...
0 1 2 3 4 5 6 7 8 9
 
 
cs


+ Recent posts