Learning path

BEFORE PYTHON

Code is everywhere!

Games, robots, rockets, cartoons and music all run on code. Let's go find it!

ONE DAY, LOTS OF CODE

Code helps you all day long.

You can't see it, but it is there. Follow one day and spot it.

  1. 7:00

    The alarm rings

    Code counts the minutes and wakes you up on time.

  2. 7:40

    Traffic lights change

    Code waits, then switches red, yellow, green.

  3. 10:00

    A school app checks your answer

    Code compares your answer with the right one.

  4. 16:00

    A game saves your points

    Code adds +10 every time you grab a coin.

  5. 18:30

    The microwave pops popcorn

    Code counts down 2 minutes and beeps.

  6. 20:00

    A cartoon on TV

    Code helped animators move every hair and drop of water.

  7. 21:00

    Music for bedtime

    Code picks the next song when one ends.

CODE HUNT

Where is the code hiding?

Tap every thing that has code inside. There are 6.

โ˜…

Find the 6 things with code

Found: 0 / 6

AMAZING PLACES

Look what code does out there.

Each card shows a tiny peek of what the code could look like. Soon you will read it!

YOU MAY KNOWRoblox ยท Minecraft

Games

Moves characters. Saves points. Checks who wins.

if coins == 100: lives = lives + 1
YOU MAY KNOWMars rovers ยท satellites

Space

Drives rovers on Mars. Points telescopes at faraway stars.

if rock_ahead: turn_left()
YOU MAY KNOWAnimated movies

Movies

Moves hair, water and snow in cartoons, frame by frame.

for frame in range(24): draw(frame)
YOU MAY KNOWMusic apps

Music

Plays the next song. Mixes beats. Makes sounds louder or softer.

volume = volume + 1
YOU MAY KNOWHospitals

Medicine

Helps doctors read X-rays. Counts heartbeats. Guides tiny robot arms.

if heartbeat > 120: alert()
YOU MAY KNOWRobot vacuums ยท robot toys

Robots

Tells robots when to move, stop and turn.

if wall_ahead: turn()
YOU MAY KNOWGoogle Maps

Maps

Compares routes. Shows where to turn.

if traffic: find_new_route()
YOU MAY KNOWYouTube Kids

Videos

Finds a title. Remembers where you stopped.

print("Keep watching?")
YOU MAY KNOWDuolingo

Learning

Checks answers. Counts streaks. Opens the next level.

streak = streak + 1

App names are examples only. PyBot is not connected to them.

PYTHON IS A SUPERSTAR

The language you will learn does big things.

PyBot speaks Python. So do many scientists and app makers.

A photo of a black hole

In 2019, scientists showed the first photo of a black hole. Python helped them put the picture together.

Apps millions of people use

Big apps, like Instagram, use lots of Python to keep running.

Scientists and space agencies

Scientists at places like NASA use Python to study planets, weather and animals.

Robots and Minecraft

Kids code small robots, tiny computers and Minecraft worlds with Python.

YOUR FIRST CODE

Say hello like a real programmer.

Press Run Python. The computer does exactly what the code says.

hello.pyREAL PYTHON
OUTPUT
Ready. Press Run Python.
Python runs here thanks to Pyodide โ™ฅ

Pyodide 314.0.3 runs CPython in your browser with WebAssembly.

Open-source under the Mozilla Public License 2.0. License

Now change one thing: Change the words inside the quotes. Write your name! Then run it again.

YOUR TURN

Code detective quiz

Try each tiny question. A wrong answer becomes something to review.

0Completed
8Not tried
0Review
01

Coin collector

In a game you grab a coin, and your points go from 20 to 30.

Who added the 10 points?

02

Driving on Mars

A rover is on Mars. No person is sitting inside it.

How does it know what to do?

03

Bump!

A robot vacuum bumps into the sofa.

What does its code tell it to do?

04

Next song

A song ends in your music app.

What small job does the code do now?

05

No code here

A banana, a game console and a smart watch are on the table.

Which one has NO code inside?

06

Who writes code?

Every app, game and robot has code inside.

Who writes it?

07

Big app, small jobs

A game moves characters, saves points and checks who wins.

What is a big app made of?

Your work is saved here.

Want a fresh start? Clear only this page.

BIG IDEA

Big apps are many small jobs.

People write those jobs in code. You will learn one small job at a time.