Python Guides¶
Seventeen guides, each structured the same way: Learn for tutorials, Recipes for task-focused how-tos, Reference for lookups, and Concepts for short explanatory essays. Every tutorial's code cells can be edited and run directly on the page.
A recommended order¶
If you're working through Python for the first time, a sensible sequence is:
- Conditional logic — how programs make decisions.
- Data structures — lists, tuples, dictionaries, sets.
- Collections —
Counter,defaultdict,deque, andnamedtuplefrom the standard library. - Functions — defining, calling, and composing.
- Classes and objects — bundling state and behaviour.
- String processing — working with text.
- Numbers and maths — numeric types, floating point,
Decimal, and the maths modules. - Dates and times —
datetime, parsing, and time zones. - Type hints — annotations and static type-checking.
- Iterators and generators — lazy pipelines and the iteration protocol.
- File handling — reading and writing data.
- Error handling — exceptions and failure modes.
- Logging and debugging — making programs observable.
- Regular expressions — pattern matching for text.
- Unit testing — proving your code works.
- Concurrency — threads, processes, and
async/awaitfor work that waits or computes. - Packages and packaging — modules, imports, virtual environments, and shipping your code.
If you're here for a specific topic, pick any guide and dive in — they're self-contained.