사용자 입력
>>> a = input()
Life is too short, you need python
>>> a
'Life is too short, you need python'
>>>
프롬프트를 띄워서 사용자 입력
>>> number = input("숫자입력")
숫자입력 3
>>>print(number)
3
>>>
문자열 띄어쓰기는 콤마 이용
>>> print("life", "is", "too short")
life is too short
>>> for i in range(10):
... print(i, end=' ')
...
0 1 2 3 4 5 6 7 8 9
'Programming Language > Python3' 카테고리의 다른 글
python module (0) | 2017.06.24 |
---|---|
Python class (0) | 2017.06.18 |
Python 프로그램에서의 입력과 출력 (0) | 2017.06.18 |
Python 제어문 (0) | 2017.06.18 |
Python 자료형의 값을 저장하는 공간, 변수 (0) | 2017.06.11 |