# 🔁 The Loop Machine

> Feed the machine a repeat instruction and watch a for-loop run for real.

_Canonical HTML: https://codersbee.com/play/loop-machine/_

Day 5 of camp · teaches Loops

Feed the machine a repeat instruction and watch a for-loop run for real.

🔁 Loop-o-Tron

Feed a loop into the machine and predict what it prints! Read the code, then tap the output tiles in the EXACT order they appear. Trace 8 loops to earn your Loop Master badge!

🔊

🔁

### Predict what the loop prints!

The machine runs a loop. Your job: read the code and **tap the output tiles in the exact order** they get printed. Some tiles are decoys — don't get tricked! You get **3 lives** across all 8 loops, and your **first slip on each loop is free** 🛟.

We start easy with `range()`, then loop over lists and strings, then the tricky ones — **break**, **continue**, and a **nested loop** finale.

▶ Start the machine

Tip: on a keyboard, press the **number** under a tile.

This is one game from one day. In camp, a live teacher builds on it, your child plays it, then **writes it in real Python**.

[Book a free demo →](https://wa.me/919996465023?text=Hi%20CodersBee!%20We'd%20like%20a%20free%20demo%20class.%20Child's%20age%3A%20__%20.%20Our%20city%2Ftimezone%3A%20__%20.)[Browse more games in the PlayHive →](/playhive)
