The course
Python
Learn core Python, then connect its object model, iterators, functions and resource handling to practical programs. Work through data processing, storage, packaging, testing and concurrency; combine them in Quarry, then explore the calculations behind a small machine-learning model.
Ready to learnYour path through the ideas
Inside the course
Install your tools, choose your setup and verify a local run.
02Fundamentals14 lessons
Python fundamentals are the basic rules for writing instructions, representing values and controlling what a program does. Learn to read and write small programs using names, calculations, decisions, repetition, functions and common collections.
- 01Basic Syntax & Output16 min
- 02Variables & Data Types17 min
- 03Operators & Math18 min
- 04Working with Strings18 min
- 05Conditionals21 min
- 06Loops20 min
- 07Type Casting & Input20 min
- 08Functions27 min
- 09Exceptions & Errors20 min
- 10Built-in Functions20 min
- 11Lists, Tuples & Sets22 min
- 12Dictionaries22 min
- 13Type Annotations20 min
- 14Capstone — Bill Splitter & Tip Calculator40 min
03Fundamentals Follow-up Projects4 lessons
A programming project combines several small concepts into a tool that solves one complete problem. Build a café checkout, a data analyzer, a budget tracker and a small game while learning to connect and test their parts.
04Objects7 lessons
Object-oriented programming organizes a program around objects: values that combine their own state with operations on that state. Build objects with clear responsibilities, protect their rules and use shared interfaces to work with different implementations.
05The Object Model4 lessons
Python’s object model describes how values behave as objects and how names refer to them. Follow identity, shared references, mutation, hashing and lifetime to explain changes that ordinary variable names can hide.
06Iteration & Laziness4 lessons
Iteration means taking values from a source one at a time. Laziness means postponing work until its result is requested. Learn how loops obtain values, how generators pause between values and how a pipeline can stop before processing its whole input.
07Functional Python5 lessons
Functional programming emphasizes composing functions and transforming values. Scope determines which binding a name refers to. Follow names and values through closures, mapping, filtering, comprehensions and lazy expressions, then decide where state should live.
08Closures & Decorators6 lessons
A closure is a function that retains access to names from an enclosing function. A decorator transforms or wraps a callable to add behavior. Use remembered state and function composition to build wrappers for logging, retries, caching and request processing.
09The Standard Toolbox5 lessons
Python’s standard library is the collection of modules supplied with Python for common programming tasks. Choose useful tools for counting, grouping, priority ordering, named states, numerical work and combining iterators.
10Data Structures in Practice6 lessons
Applied data structures are concrete ways to organize data so particular operations are easier or less costly. Compare arrays, links, hash maps, stacks, queues, heaps and trees by tracing the operations they support.
11Files, Paths & Encodings6 lessons
File handling moves data between a program and storage. An encoding specifies how text is represented as bytes. Work with paths, streams, cleanup and binary formats while keeping character counts, byte counts and file evidence distinct.
12Serialisation & Storage5 lessons
Serialization converts values into a format that can be stored or transmitted. Storage keeps those representations for later use. Move records through CSV, JSON, trusted caches and SQLite while checking types, boundaries and round-trip behavior.
13Text & Patterns5 lessons
A text pattern describes a shape to find in a string. A regular expression is one language for writing such patterns. Find, capture and transform text, then separate a successful match from meaningful validation and safe execution.
14Modules, Environments & Packaging3 lessons
A module is a unit of importable Python code. Packaging describes how code, metadata and dependencies are distributed and installed. Organize a project, isolate its environment and connect an installed command to the function it should run.
15Failure & Observability3 lessons
Failure handling decides how a program responds when an operation cannot finish. Logging records events that help explain what happened. Choose recovery boundaries, preserve original causes and collect useful evidence without hiding failures or duplicating messages.
16Testing & Debugging7 lessons
Testing compares observed behavior with an explicit expectation. Debugging investigates why the behavior differs from that expectation. Design useful checks, control test state and dependencies, and use observations to find the first incorrect assumption or value.
17Frameworks & Tooling6 lessons
A framework supplies reusable structure for an application. Development tools help manage its dependencies, check its code and run its work. Compare tools by the problem they solve, and distinguish type checking, validation, concurrency and code-quality checks.
18Capstone — Quarry1 lesson
An end-to-end data pipeline takes raw input through parsing, validation, transformation and storage to a useful result. Assemble Quarry from the earlier components and verify that malformed records, storage boundaries and failures are handled consistently.