Các kiểu dữ liệu trong Python:
| Biểu thức | Kiểu dữ liệu | Diễn giải |
| x = “Hello World”, x = str(“Hello world”) | str | Chuỗi |
| x = 20, x = int(20) | int | Số nguyên |
| x = 2.5, x = float(2.5) | float | Số thực |
| x = 1j, x = complex(1j) | complex | Số phức |
| x = [“apple”, “banana”, “cherry”] x = list((“a”, “b”, “c”)) | list | Danh sách (tương tự array) |
| x = (“apple”, “banana”, “cherry”) x = tupple((“a”, “b”, “c”)) | tuple | Bộ dữ liệu |
| x = range(6) | range | Khoảng |
| x = {“name” : “John”, “age” : 36} x = dict(name=”John”, age=36) | dict | Từ điển |
| x = {“apple”, “banana”, “cherry”} x = set((“a”, “b”, “c”)) | set | Tập hợp |
| x = frozenset({“a”, “b”, “c”}) x = frozenset((“a”, “b”, “c”)) | frozenset | Tập hợp bất biến |
| x = True/False x = bool(5), x = bool(“apple”) | bool | Logic |
| x = b”Hello”, x = bytes(5) | bytes | Byte |
| x = bytearray(5) | bytearray | Byte Array |
| x = memoryview(bytes(5)) | memoryview | Xem bộ nhớ |
| x = None | None Type | Tương đương Null |

