Hands-on · Example-driven · No fluff
Python patterns explained with working code
Each tutorial here starts with a real problem, shows exactly what the language feature does to solve it, and explains the tradeoffs so you know when to reach for it again. No slides, no quiz questions, no filler.
Latest tutorials
All tutorials →-
Tooling
Virtual Environments with venv: Project Isolation Step by Step
Each project gets its own dependency tree. How to create, activate, install into, and reproduce a venv environment reliably.
-
Iterators
Generators and yield: Sequences That Pay as They Go
Why loading a million rows into a list is unnecessary. How yield pauses a function and resumes it on demand, keeping memory flat.
-
Functions
Decorators Explained: Wrap Functions Without Touching Them
How decorators borrow function objects, add behaviour around them, and return a modified callable. Built step by step from first principles.
-
Core Syntax
List Comprehensions: Build Lists Without the Loop Noise
Transform, filter, and flatten sequences in one readable expression. When comprehensions help and when a plain loop is the better choice.
What this site covers
Comprehensions, generators, decorators, context managers, and the other features that separate readable Python from verbose Python.
File I/O, regular expressions, collections, and pathlib. The batteries that are already included, shown in context you will actually encounter.
Type hints, f-strings, virtual environments, and the conventions that make code easier to read, test, and hand off to other people.