Grades 6–12

Python Code Bricks

Tap bricks to stack them into a program. Press Run to see what Python would print. Make it match the goal.

Goal: make Python print

Hello
Hello
Hello

Code bricks (tap to add — you can reuse them)

A for-loop repeats the indented line under it.

Your program

  1. Tap bricks to stack your program

What this teaches

  • How a Python for-loop repeats code
  • Why indentation matters in Python
  • Reading output to find bugs

Talk about it together

  • What does range(1, 4) count through?
  • What happened when the print line was not indented?
  • How would you print a staircase of 5 steps?
This mission comes from Coding Pathway (Python): Coding Explorers

A beginner-friendly start: computational thinking, Python basics, debugging and a first real project.

See the full program

More missions