Course outline
19 lessons, roughly 5 hours. Work through them in order — each one assumes the ones before it.
1.Foundations
Run your first program, then learn the four building blocks every Python script is made of: values, names, numbers, and text.
- 10 min
Hello, Python
What Python is, how a program actually runs, and your first working script.
- 14 min
Variables and Types
Give values names so you can reuse them, and learn the four core types you will use constantly.
- 12 min
Numbers and Operators
Arithmetic, integer division, remainders, powers, and the precedence rules that decide what runs first.
- 16 min
Working with Text
Build, format, slice, and clean up strings — the type you will handle more than any other.
2.Control Flow
Make programs that decide and repeat. Conditions, branches, and the two kinds of loop.
- 12 min
Booleans and Comparisons
Ask yes/no questions about your data and combine the answers with and, or, and not.
- 14 min
if, elif, else
Branch your program down different paths, and understand why indentation is part of the syntax.
- 14 min
for Loops and range()
Repeat work once per item — over a range of numbers, the characters of a string, or any collection.
- 13 min
while Loops, break, and continue
Repeat for as long as a condition holds — and stay out of infinite loops.
3.Data Structures
Store many values at once. Lists, tuples, sets, and dictionaries — and how to pick the right one.
- 16 min
Lists
Ordered, changeable collections — the workhorse container of Python.
- 12 min
Tuples and Sets
Two more containers: one that cannot change, one that removes duplicates.
- 16 min
Dictionaries
Look values up by name instead of position — the structure behind settings, records, and JSON.
- 12 min
Comprehensions
Build a new list, set, or dict from an existing one in a single readable line.
4.Functions and Errors
Package logic into reusable pieces, organise code across modules, and handle failure without crashing.
- 15 min
Defining Functions
Name a piece of logic once, then use it everywhere — with parameters and return values.
- 13 min
Scope and Modules
Where variables live, and how to split a program across files and reuse the standard library.
- 15 min
Errors and Exceptions
Read a traceback, catch the failures worth catching, and raise your own.
5.Applied Python
Files, objects, and the standard library — then a capstone that puts the whole course together.
- 14 min
Reading and Writing Files
Persist data to disk with `with open(...)`, and handle text line by line.
- 17 min
Classes and Objects
Bundle data with the functions that operate on it, and model things in your problem domain.
- 13 min
The Standard Library
A tour of the batteries included: math, random, datetime, json, and collections.
- 25 min
Capstone: Build a Quiz App
Put variables, loops, dicts, functions, classes, and error handling together into one working program.