Coding course · Python
Python Programming — Complete Theory Notes
From your first line of code to advanced, professional Python. Written for self-study: read the theory, copy the example, then try it yourself.
10 modules 27 lessons with worked examples Basics → Advanced → Professional
Reading is free for everyone. To download the notes, sign in with a Pro subscription.
Basics
1. Getting started with Python
What Python is, how it runs your code, and how to set up a working environment.
Basics
2. Variables, data types and operators
How Python stores values, the built-in types, and how expressions are evaluated.
Core
3. Control flow: decisions and loops
Branching, iteration, and how to write loops that are both correct and readable.
Core
4. Collections: lists, tuples, dictionaries and sets
The four workhorse containers, when to use each, and comprehensions.
Core
5. Functions and scope
Defining reusable behaviour, argument styles, closures and functional tools.
Intermediate
6. Object-oriented programming
Classes, the four pillars, dunder methods, dataclasses and composition.
Intermediate
7. Errors, files and modules
Handling failure properly, working with files and data, and organising code into packages.
Advanced
8. Advanced language features
Iterators, generators, decorators, context managers, typing and metaprogramming.
Advanced
9. Concurrency, performance and testing
Threads vs processes vs async, profiling, and proving your code works.
Professional
10. Applied Python and professional practice
The ecosystem, project structure, and how working Python developers ship code.
Take the notes with you
Pro subscribers download the complete course as one file — every module, lesson, key point and code example — to read offline or print.