Python Concepts
A structured path from Python fundamentals to production APIs, with concise explanations, focused examples, and a final quick-reference guide.
Choose a path
-
Learn Python systematically
Start with syntax and the object model, then progress through functions, object-oriented design, iterators, testing, concurrency, and algorithms.
-
Build APIs with FastAPI
Learn routing, Pydantic validation, dependency injection, asynchronous I/O, application structure, security, and testing.
-
Prepare for senior interviews
Review advanced internals, production trade-offs, system-design prompts, and scored quizzes.
-
Look something up
Use the compact syntax, collection, exception, typing, testing, and complexity tables.
Learning sequence
- Language foundations — values, types, control flow, collections, mutability, and copying.
- Functions and modules — call signatures, scope, imports, packages, and reusable code.
- Object-oriented Python — classes, inheritance, composition, protocols, and data classes.
- Pythonic iteration — comprehensions, iterators, generators, decorators, and context managers.
- Reliability — exceptions, files, testing, debugging, and type hints.
- Advanced execution — concurrency, parallelism, and performance choices.
- Problem solving — complexity and common algorithm patterns.
- Senior internals — descriptors, MRO, metaprogramming, pattern matching, and dispatch.
- Typed API design — protocols, generics, variance, serialization, and compatibility.
- Production concurrency — structured tasks, cancellation, backpressure, and request context.
- Production engineering — configuration, observability, caching, testing, profiling, and migrations.
- FastAPI — typed HTTP APIs and production-oriented structure.
How to use this site
Read each topic in order when learning. Each page explains the mental model first, provides only the code needed to demonstrate it, and ends with a checklist. When coding, use the quick reference and site search instead of rereading every chapter.