Learn Programming
An introduction to programming with Python, the way real developers work.
Press โ or Space to begin
The course
What is this course?
- A course for people to learn how to make computers do what they say.
- We start with Python: a friendly language that is also used by real companies, scientists and game makers.
- We use real developer tools from day one: a code editor, a type checker, tests and GitHub.
- First an introduction with small lessons and exercises. Then you build your own project.
The course
What will we learn?
๐ฆ Variables, constants and types
How a program remembers things, and the difference between text, numbers and true/false.
๐งฎ Operators and decisions
Doing math, comparing things, and letting the program choose with if/else.
๐ Loops
Making the computer repeat things, which is what computers are best at.
๐งฐ Functions
Building your own commands so you can reuse them.
๐๏ธ Project structure
How a modern Python project is organized, with tests and everything.
๐ ๏ธ The tools
Zed, uv, ruff, ty, pytest and GitHub. The same tools professionals use.
The course
How do we work?
- Every lesson has code you can run right here in the browser. Change it, break it, fix it.
- Every lesson has a small exercise. The page tells you when you get it right.
- You also write code on your own computer in the editor Zed, in a project that grows during the course.
- Ask for help whenever you are stuck. Being stuck is part of programming.
After the introduction
Pick a language for your own project
When the introduction is done, you choose what to build, and which language to build it in:
๐ Python
Keep going with what you know. Great for games with pygame, bots, data and small web apps.
๐จ JavaScript / TypeScript
The language of the web. Build websites and web apps. This presentation is built with it.
๐น Go
A fast, simple language made at Google. Great for command-line tools and servers.
All three work in Zed, so the tools you set up next will still be useful.
Let's go
First: set up your tools
Before we can write code, we need a few programs on your computer. We will install:
- A GitHub account, to save and share your code
- git and the GitHub CLI, to fetch and share code
- Zed, the editor we write code in
- uv, which installs Python and manages projects
- ruff, ty and pytest, which check and test your code
- Tell Zed to use ruff and ty
Press โ to start.