๐Ÿงช Free ยท 988 challenges

Code Lab: predict, debug, fix, build.

Short coding challenges for every Python and JavaScript lesson. Say what a program prints, find the line that breaks it, drag in the line that fixes it, or put a jumbled program back in order. Then watch it run one line at a time, with every variable drawn as a box.

๐Ÿ”ฎPredict

Read a program and say what it prints, then watch it run line by line.

๐Ÿ”Trace

One line is lit. Say what a variable holds right after it runs: the skill behind every debugger.

๐ŸžDebug

One line is wrong. Tap it, see what it printed and what it should print.

๐ŸงฉFix it

A line is missing. Drag the one that makes the program work.

๐ŸงฑBuild it

The lines are mixed up. Put them in order so the program runs.

๐Ÿ Python from scratch

Beginner ยท ages 10 and up

๐Ÿค– Python for Grade 5

Grade 5 ยท ages 10 and 11 ยท no experience needed

๐Ÿ›ฐ๏ธ Python for Grade 8

Grade 8 ยท ages 13 and 14 ยท no experience needed

๐Ÿงฑ Python OOP: classes and objects

Grades 9 and 10 ยท ages 14 to 16 ยท after a first Python course

๐ŸŸจ JavaScript for Grade 10

Grade 10 ยท ages 14 to 16 ยท after an introduction to JavaScript

๐Ÿš€ Python to Software and AI Engineer

Ages 13 to 17 ยท after the basics ยท one 60-minute class a week

๐Ÿ—‚๏ธ Python data structures: lists, tuples, dictionaries

Grades 9 to 12 ยท ages 14 to 18 ยท after a first Python course

๐Ÿค– AI and machine learning for kids: build it in Python

Ages 11 to 14 ยท complete beginners ยท Python from lesson 1

How the Code Lab works

Every challenge comes from a real lesson and is checked by running the code: a wrong choice is a program that really prints something else. Each round has twelve challenges; the ones you miss come back at the end. After each answer, โ–ถ Watch it run steps through the program line by line, showing what Python keeps in memory and what it prints, so you see why the answer is right.

โ† All games ยท Coding lessons

Chat on WhatsApp
Esc

Try