Free · No install · Runs in your browser

Learn Python by running it.

Short lessons with diagrams, an editor next to every example, and output right below the code. Change it, run it again, then practise — all on one page.

111 lessons · exercises with instant checks · NumPy, pandas & Matplotlib supported

Try it now — edit & run
# Edit me, then press Run (or Ctrl + Enter)
names = ["Asha", "Ben", "Chen"]

for name in names:
    print(f"Hello, {name}!")

print("Total:", len(names), "learners")

LearnShort, structured theory — no walls of text.
SeeDiagrams show what Python does with your data.
RunEvery example has a Run button. Output appears right below.
ChangeEdit the code in place and run it again.
PracticeExercises with instant checks after each concept.
BuildSmall projects that combine what you learned.

The curriculum

See every lesson →

Follow the path from your first line of code to real projects — or jump straight to any topic.

Why it is different

Your code runs on your device. Python is compiled to WebAssembly (Pyodide) and runs inside your browser tab, so there is no waiting for a server and nothing to install. It even works on a phone.

Every concept is visual first. Lists are drawn as numbered boxes, dictionaries as key → value arrows, loops and try/except as flowcharts — then you run the code that matches the picture.

Mistakes are part of the lesson. Readable tracebacks, the line highlighted in the editor, and a plain-English hint linking to a page about that error.

Popular lessons