Real Python 3 · free · nothing to install

Python for kids, right in the browser

Kids write real Python 3 in a browser tab, on a Chromebook or any computer. Start from a text adventure, a chatbot or a code-breaker, see how it works, and change it until it's theirs.

Why Python is a good first language

Python reads almost like English, so kids spend their time on ideas, not punctuation. It's also the real thing: the language behind a lot of science, data and AI work. What they learn here keeps being useful.

import random

secret = random.randint(1, 20)
guess = 0

while guess != secret:
    guess = int(input("Guess my number (1-20): "))
    if guess < secret:
        print("Higher!")
    elif guess > secret:
        print("Lower!")

print("You got it!")

That's a whole game in about a dozen lines. Paste it into a new Python project and press ▶ Run.

What makes it work for kids

  • Nothing to installPython runs in the browser tab, even on a locked-down school Chromebook.
  • Typing answersWhen a program calls input(), a text box appears right in the output.
  • Errors that helpMistakes show in red with the line number, so kids learn to find their own bugs.
  • Stop always worksPython runs in the background, so a runaway loop never freezes the page.
  • More than one fileSplit a program into files and import them, like real projects do.
  • Saved as they typeAnd every published version can be brought back.

A path through the Python projects

  1. Castle Escape: a text adventure. Learn input(), loops, lists and dictionaries by adding rooms.
  2. ChatBot Buddy: a rule-based chatbot that remembers your name and tells jokes. Teach it new things to say.
  3. Secret Codes: encrypt messages with a Caesar cipher, then crack one without the key.
  4. Rock Paper Scissors AI: a computer that learns your habits and predicts your next move.
  5. ASCII Art Studio: giant banners and the Mandelbrot fractal, drawn with nested loops.
  6. Probability Lab: roll dice 10,000 times and estimate π with random darts.
  7. Maze Maker & Solver: generate a maze with depth-first search and solve it with breadth-first search.

Each project has a page explaining how its code works, settings to tweak and challenges to try.

For teachers and parents

Make a class (or a family), add kids by nickname, and assign any of these projects as a starter. Each kid gets their own copy, turns it in when they're done, and you review their code running next to a feedback box. How Python works in the editor →

Questions

Is this real Python or a simplified version?

Real Python 3, the same language professionals use. The standard library works, and packages like numpy load the first time you import them.

Can kids draw with turtle?

Not yet. Python programs here print text and ask for input. For drawing and animation, try JavaScript projects like Fireworks.

What age is it for?

Kids who can read and type comfortably. The beginner projects explain every part of the code, and the advanced ones (like the maze solver) stretch strong students.

Does my child need an account?

No. Anyone can start as a guest. Under 13s who want to keep their work get a login from a parent or teacher, with no email needed.

What if a program gets stuck in a loop?

Press Stop. It always works, even on while True:, and the page never freezes.

Can they share what they made?

Yes. Publishing gives a Python project its own link. Anyone who opens it can run the program.

Try it now. It's free.

No install, no credit card. Kids can start as a guest; grown-ups can set up a class or a family in minutes.