Paul's Python Course
A free Python course in your browser, from your first print() to a neural network.
I teach Python to my friends, and this is the website for it. You start on the ground floor of an old clocktower printing a sign for the door, and work your way up through nine floors and 116 projects until you've written a neural network from scratch, built a tiny GPT and trained a crab to race.
It's free and there's nothing to install. Read the syllabus
The class in the Workshop, with Paul and Neil standing at the back, Aaesha, Caitlin, Riya and Yahya in front of them behind a long desk with a yellow rubber duck on it, and the clock on the wall says 3:14.
How a project goes
Every project starts with one of us needing something, and ends with a real program that does it.
The brief
Someone in the class needs a program
Caitlin has picked the restaurant for class dinner. There are six of us and one bill, and last time it took twenty minutes to settle who had the extra garlic bread, so you build her a bill splitter.

Learn
Learn the idea, then guess what it prints
You pick up the ideas as you go, with short explanations, examples you can run and questions that make you guess what some code will print before you get to run it. When a step only wants you to read something, the code next to it is locked, so you can run it but you can't type in it until a step actually asks you to change something.

Fix it
Fix a classmate's bug
At some point somebody's code turns up with a mistake in it. Yahya's tip program says a bill of 20 with a 10 per cent tip comes to 20.10, so you find the bug and fix it (and I'll have something to say about the variable called
c).
Build it
Write it yourself
Then you write the program yourself and the tests check it, and if you get stuck there are hints that give away a little more each time, or a rubber duck you can explain the problem to, although it won't answer you.
Ship it
Ship it to your Shelf
Once the checks pass the program goes on your Shelf, and from there you can download everything as one repository, push it to GitHub or send a friend a link that runs it in their browser.

Climb the tower
Each floor of the Clocktower is an Act, with its own room and one of us working in it. The first four floors are Python and computer science, the next four are data science, machine learning, deep learning and reinforcement learning, and the roof is for capstone projects.
- The Roof Terrace, the roof: Capstones and portfolio
- The Arcade, floor 7: Reinforcement learning
- The Engine Room, floor 6: Deep learning and AI
- The Model Room, floor 5: Machine learning
- The Archive, floor 4: Data science
- The Puzzle Room, floor 3: Algorithms and data structures
- The Makerspace, floor 2: Real-World Python
- The Studio, floor 1: Fluent Python
- The Workshop, ground floor: Foundations
Act 9, the roof
The Roof Terrace: Capstones and portfolio
9 projects and about 60 hours, on everyone's floor.
You build Paper Reproduction and Your Own Project.
Act 8, floor 7
The Arcade: Reinforcement learning
12 projects and about 50 hours, on Aaesha and Caitlin's floor.
You build Q-Learning Crab, Snake AI and CartPole with DQN.
Act 7, floor 6
The Engine Room: Deep learning and AI
14 projects and about 60 hours, on Aaesha's floor.
You build Neural Network from Scratch, Tiny Autograd Engine and Tiny GPT.
Act 6, floor 5
The Model Room: Machine learning
10 projects and about 45 hours, on Paul's floor.
You build Spam Filter, Movie Recommender and Fishing Forecast.
Act 5, floor 4
The Archive: Data science
12 projects and about 40 hours, on Yahya's floor.
You build Census Explorer, Earth Data Map and Data Story.
Act 4, floor 3
The Puzzle Room: Algorithms and data structures
15 projects and about 45 hours, on Neil's floor.
You build Hash Map from Scratch, Maze Solver and Sudoku Solver.
Act 3, floor 2
The Makerspace: Real-World Python
10 projects and about 40 hours, on Riya's floor.
You build Weather App, Snake and Flask Web App.
Act 2, floor 1
The Studio: Fluent Python
20 projects and about 45 hours, on Caitlin's floor.
You build Quiz App, Bank Account System and Text Adventure Engine.
Act 1, ground floor
The Workshop: Foundations
14 projects and about 25 hours, on Paul's floor.
You build Bill Splitter, To-Do List and Rock Paper Scissors.
91 of the 116 projects are written so far, and the rest are on the way. See every project in the syllabus
Meet the class
Everyone in it is a real person. I teach, Neil helps me out, and Aaesha, Caitlin, Riya and Yahya bring you the projects, and sometimes their own buggy code. You can play as any of us or make your own avatar, and everyone learns the same Python either way, it's just the story around it that changes.
Paul
Paul The professor, into coding, AI and machine learning.The Workshop and the Model Room
Neil
Neil The teaching assistant, into racing cars and aerospace.The Puzzle Room
Aaesha
Aaesha A classmate, into cognitive systems.The Engine Room and the Arcade
Caitlin
Caitlin A classmate, into a bit of everything.The Studio and the Arcade
Riya
Riya A classmate, into art and design.The Makerspace
Yahya
Yahya A classmate, into data science.The Archive
Around the projects
Morning Rounds
Each idea comes back a day or two after you first use it, then less and less often as it sticks.
Drills
Five quick tasks against the clock, and Yahya has set the time to beat on every one of them.
The Arcade League
A race every week for the crabs you train in Act 8, where everyone's crab runs on the same seeds and the lowest average number of moves wins.
Certificates
You get one for each Act you finish, and they're proper ones with an engraved border, a gold seal and my signature on them, which you can save as a picture or print on a sheet of A4.

For teachers
Make a class, choose which projects to set, and give everyone its six-character code or join link. Once they've joined, your register shows each student's progress, time and code as they work, without anyone having to send you anything.
Students see what's set on their desk in the Clocktower, with its due date, until they ship it.

Questions
- What does it cost?
- Nothing, every Act is free and so are the certificates.
- Do I need an account?
- Yes, but it's free and all it needs is a username, your email and a password. It keeps your work safe on any device, and it's how you add friends, look round their Shelves and join a class.
- Do I need to install anything?
- No, Python runs right there in your browser. A few of the later projects need more than a browser can do, like PyTorch and Pygame, so you build those on your own computer and paste the test results back in.
- Do I need to know any Python first?
- No, the first project starts with a single print(), and if you already know some Python there's a placement test that can open the early floors for you.
- How long does it take?
- About 410 hours for all nine Acts, and about 25 for the first. Every project shows how long it usually takes, and there's no rush.
- Is all of it ready?
- 91 of the 116 projects are written and ready to play, and the rest are still being written, so the syllabus marks which ones they are.
Start on the ground floor
The first project is Course Sign, which is the sign for the Clocktower's front door and takes about 20 minutes.