개발과 친해지기 - Python
[Python] Basic Data Type
justdoIT0730
2025. 4. 5. 14:41
728x90
728x90
Type | Description | Example |
int | 정수형(Integer) | 1, 100, -3 |
float | 실수형(소수점이 있는 숫자) | 3.14, -0.5, 2.0 |
bool | 논리형(Boolean, 참 / 거짓) | True, False |
str | 문자열(String) | 'hello', "0010" |
list | 리스트(배열처럼 사용) | [1, 2, 3], [0, "one", 3, "four"] |
tuple | 튜플(변경 불가능한 리스트) | (1, "ab", 3.14, True) |
dict | 딕셔너리(Key-Value 쌍으로 저장) | {"name": "Han", "age": 10} |
set | 집합(중복 없는 요소들의 모음) | {1, "ab", 3.14, True} |
None | 아무 값도 없음(Null 개념) | None |
728x90
728x90