Python Programming
Understand Python from its fundamentals to engineering practices.
Levels indicate concept complexity and prerequisites, not learner progress.
Beginner
- Meet Python — Meet Python, the interpreter, and the small pieces of a first program.
- Setting Up Python — Find Python, check its version, run a file, and understand isolated environments.
- Python Names and Values — Give values names, recognise their types, and convert user input carefully.
- Expressions and Operators — Combine values with arithmetic, comparisons, and logical operators.
- Decisions with if — Use conditions and indentation to choose which instructions run.
- Repeating Steps with Loops — Repeat actions with for and while, and control when an iteration ends.
- Strings, Lists, and Tuples — Store ordered items and use positions without confusing a value with its index.
- Sets and Dictionaries — Keep distinct members in a set and associate keys with values in a dictionary.
- Functions and Scope — Name a reusable job, pass information to it, and return a result.
- Importing Python Modules — Reuse a named collection of Python tools from the standard library.
- Text Files and Exceptions — Read a text file and report an expected problem without hiding it.
Intermediate
- Comprehensions, Nested Values, and Mutation — Build collections from existing data and reason about shared mutable objects.
- Arguments, Lambda, and Recursion — Understand how calls bind arguments and how recursive calls return.
- Classes, Objects, and Inheritance — Follow object creation, attribute lookup, and a simple inherited method.
- Encapsulation, Polymorphism, and Abstraction — Design small object interfaces and see how overriding changes behaviour.
- Exception Flow and Context Managers — Trace successful and exceptional paths while ensuring cleanup.
- Packages and Python Environments — Isolate dependencies and understand how project metadata and installation fit together.
- CSV, JSON, XML, and YAML — Choose a data format and read values without confusing text with types.
- Paths and Filesystem Operations — Build paths, read text, and understand when filesystem operations can fail.
- Python's Data Toolkit — See how NumPy, Pandas, Matplotlib, and Jupyter support different stages of exploration.
- Testing, Debugging, and Logging — Check a small function, investigate a failure, and report useful events.
Advanced
- Closures and Decorators — Follow a function that remembers a value and wraps another function.
- Iterators, Generators, and Resource Lifetimes — Trace lazy values and cleanup when an iterator or context is finished.
- Multiple Inheritance and Python's Object Protocol — Trace method lookup through the MRO and understand special methods.
- Properties, Dataclasses, and Abstract Classes — Model validated state, generated methods, and explicit class contracts.
- Type Hints, Protocols, and Pattern Matching — Express type relationships and follow a structural pattern match.
- Async Tasks, Threads, and Processes — Compare cooperative waiting, threads, and separate processes without promising an execution order.
- Binary Data, Pickle, and Distribution — Distinguish bytes from text, understand pickle trust, and follow a package build.
- Scientific Python: Visualisation and Mathematics — Compare Seaborn, SciPy, and SymPy through a small scientific workflow.
- Models, Inference, and pytest — Contrast predictive modelling and statistical inference, then test a small function.
- APIs, Validation, and Python Web Frameworks — Follow a request through validation and a prepared response.
- SQLAlchemy and Database Boundaries — Follow a transaction while keeping data access separate from the static site.
- Maintainable Python Design and Testing — Separate responsibilities and test the boundary between collaborating parts.
Expert
- Descriptors and Attribute Lookup — Trace how a descriptor controls attribute access for an instance.
- Metaclasses and Introspection — Inspect a class and see when its metaclass validates its definition.
- References, Memory, and Garbage Collection — Follow references to a shared object and distinguish reachability from collection timing.
- Profiling and Performance Decisions — Measure a real workload before choosing an optimisation.
- Concurrency Correctness and Shared State — Protect a shared invariant and reason about failures and cancellation.
- Types, API Contracts, and Deployment — Preserve a callable's type relationship and design stable release boundaries.
- Security Boundaries in Python Systems — Validate at trust boundaries and design explicit failure handling.
- Tensors and Automatic Differentiation — Compare a small gradient in PyTorch, TensorFlow, and JAX.
- Transformers as a Python Ecosystem Bridge — Follow token IDs and masks through a small transformer model without downloading weights.
