Python được Guido van Rossum tạo ra với triết lý "Beautiful is better than ugly, Readable counts". Sub-pillar này dạy Python 3.12+ với Pythonic idioms — type hints first-class, comprehension over loop, duck typing, EAFP, asyncio. Không phải "Java in Python" tutorial.
Tập trung core ngôn ngữ + stdlib — không bao gồm framework (Django/FastAPI) hay data science (pandas/numpy) ở sub-pillar này. Mỗi chương ~700-1100 dòng, có: lý thuyết chi tiết, code chạy được, visualizer, 4-5 bài tập, 7-8 quiz, tổng kết.
pyenv, venv, uv, pyproject.toml, PEP 8, Zen of Python, IDE setup, compile mode.
int arbitrary precision, f-string, immutability, == vs is, chain comparison, type hints intro.
list/tuple/dict/set, comprehension (list/dict/set/generator), slicing, collections stdlib (Counter, defaultdict, deque).
match/case (3.10+), *args/**kwargs, positional-only/keyword-only, LEGB scope, closure.
Class, dunder method, inheritance, MRO, @property, @dataclass, ABC, Protocol, duck typing.
__iter__/__next__, yield, generator expression, lazy eval, infinite, itertools toolbox.
@functools.wraps, @lru_cache, with statement, @contextmanager, ExitStack.
GIL, asyncio event loop, async/await, gather/create_task/wait_for, httpx async.
Type hints, mypy strict, Protocol, TypedDict, Generic syntax PEP 695 (3.12+), narrowing.
pytest fixture/parametrize/marker, mock, coverage, ruff, pyproject.toml đầy đủ, build + publish PyPI.
Nhiều người học Python qua Django/Flask/FastAPI tutorial — viết web app được nhưng không hiểu generator, decorator, context manager, asyncio thật sự là gì. Khi gặp bug khó (memory leak với generator, deadlock asyncio, decorator mất metadata), không có khung tham chiếu để debug.
Sub-pillar này đi từ ngôn ngữ + stdlib. Batteries included là điểm mạnh nhất của Python — hiểu stdlib trước, thêm framework là chuyện đơn giản sau.
Mới học programming — Python là ngôn ngữ tốt để bắt đầu (cú pháp đơn giản, ít boilerplate). Đã có nền JS/TS hoặc Dart — Python rất dễ tiếp thu, mỗi chương có callout so sánh với JS/Dart để build mental model nhanh.
Tutorial Python trên internet thường dạy Python 2 cũ (đã EOL 2020) hoặc Python 3 không dùng type hints. Sub-pillar này 100% Python 3.12+ với type hints xuyên suốt — không có code nào "không annotate".
Mỗi chương có section "Kết nối" trỏ tới chương khác trong Pillar 9 hoặc trụ cột nền tảng. Ví dụ: Chương 6 (Iterators & Generators) đối chiếu với JavaScript Chương 5 (Iteration Protocol); Chương 8 (asyncio) đối chiếu với Dart Chương 7 (Future & Stream); Chương 9 (typing) gần giống JavaScript Chương 9 (TypeScript Foundations).
Học xong 10 chương → bạn đã có 4 sub-pillar Pillar 9 hoàn chỉnh (Dart, Flutter, JavaScript, Python). Tiếp theo có thể đi sâu vào framework (Django, FastAPI cho Python; React/Next.js cho JS) hoặc ngôn ngữ mới (Go, Rust).