Skip to main content
For absolute beginners · No prior coding

Learn to code
from nothing.

Never written a line of code? Start at the very beginning. Ten short lessons take you from "what even is a program?" to writing real Python — variables, loops, functions, lists, dictionaries, strings, and how to debug when things break. Every term is defined the first time it appears.

10
Lessons
Python
Taught in
In-browser
Runnable code
$0
Free · no signup
first_program.pyrunning
# Your very first program.
name = "world"
print("hello, " + name + "!")

# → hello, world!
3 lines · no setupruns in your browser
Start here

Two things to know before lesson 1.

01

A program is just a list of instructions.

The computer does exactly what you say, in order, one step at a time. Nothing is magic — coding is learning to spell out steps precisely enough for a machine to follow.

02

You learn by running code, not reading about it.

Most lessons end with a runnable challenge: you write a few lines of Python and run them right in the page against real test cases. A short quiz unlocks the next lesson.

Ready?

Write your first line of code.

Twenty minutes from now you'll have run real Python and understood every character of it. No installs, no account, no cost — just open lesson 1 and start.