Peter the Python waves from a sunny window

Peter the Python Game — Demo

What happens here

  • Read a tiny story, then type the code yourself.
  • Press Run ▶ to check your work.
  • Correct = ⭐ with confetti; mistake = 🐞 (a clue you can fix).
  • Tap 🔊 Read this aloud when you want the page to speak.
⭐ Stars: 0 🐞 Bugs: 0 Go Pro — Full Course ▶

Lessons

Lesson 0: Say Hello

First words: make Peter talk with print().

Start ▶

Lesson 1: add(a, b)

A function is a named trick. Teach Peter to add two numbers.

Start ▶

Lesson 2: Treasure List

Lists are treasure chests. Learn append and indexing.

Start ▶

Practices

Practice 1: Greet & Add

Combine a greeting with a simple sum.

Start ▶

Practice 2: Chest Report

Use a function + list: greet, add a gem, show first & last.

Start ▶

Practice 3: Math Treasure

Two functions together and a quick list peek.

Start ▶

Extras

Mini Glossary

Symbols with kid-friendly meanings & memory tricks.

Open ▶

Full Course

More chapters, projects, teacher mode & exports.

Go Pro ▶