Tutorial Series // Python
The Complete Python Tutorial
The language itself, mastered — syntax, data structures, OOP, generators, decorators, and the standard library. Every topic ships working code.
- 01 Introduction to Python & Setup Why Python dominates web, data, and AI — and how to install it, run your first script, and use the REPL. 7 min →
- 02 Variables, Types & Numbers Variables without declarations, the core types (int, float, str, bool, None), and how dynamic typing really works. 8 min →
- 03 Control Flow — if, while, for Branching with if/elif/else, looping with while and for, range(), break/continue, and truthiness. 9 min →
- 04 Functions — Arguments, Returns & Scope def, return values, default and keyword arguments, *args/**kwargs, scope rules, and type hints. 10 min →
- 05 Lists & Tuples Python's workhorse sequences — indexing, slicing, mutating methods, sorting, and when to use a tuple instead. 10 min →
- 06 Dictionaries & Sets Key-value mapping with dicts — get, setdefault, iteration, merging — and sets for uniqueness and fast membership. 10 min →
- 07 Strings & f-Strings String methods you'll use daily, f-string formatting, splitting and joining, and why strings are immutable. 9 min →
- 08 Object-Oriented Python — Classes __init__, instance vs class attributes, methods, inheritance, dunder methods, properties, and dataclasses. 12 min →
- 09 Modules, Packages & Imports Split code across files, import it cleanly, structure a package, and understand __name__ == "__main__". 8 min →
- 10 Files, Paths & JSON Read and write files safely with `with`, modern path handling via pathlib, and JSON/CSV serialisation. 9 min →
- 11 Exceptions & Error Handling try/except/else/finally, catching specific exceptions, raising your own, custom exception classes, and EAFP. 9 min →
- 12 Comprehensions, Iterators & Generators List/dict/set comprehensions, the iterator protocol, generator functions with yield, and lazy pipelines. 10 min →
- 13 Decorators & Context Managers Functions that wrap functions — write @timing and @retry decorators, and build your own with-statement managers. 11 min →
- 14 pip, Virtual Environments & Project Layout Manage dependencies per-project with venv and pip, pin versions, read pyproject.toml, and lay out a real project. 8 min →
- 15 Testing with pytest & Next Steps Write your first pytest suite — assertions, parametrize, fixtures, exception testing — and map your path after this series. 10 min →