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. Eighteen lessons take you from "what even is a program?" to reading, writing, testing, and debugging small Python programs. One practice lab helps you check an AI code suggestion using what you have learned. Every new term is explained along the way.

18 + 1
Lessons + AI lab
17
Python challenges
19
Checkpoint quizzes
Python
Taught in
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

Read, predict, run, and explain.

Practice with 17 runnable challenges: write Python in the page, test it, and explain what happened. Passing each page's quiz enables its Next button. The AI lab uses curated examples; no AI account or live AI tool is needed.

Ready?

Write your first line of code.

Start with a small program and take time to understand each line. Browser practice is free and needs no installation or account. Lessons 16 and 17 introduce local Python and Git setup; publishing to GitHub is optional and needs an account.