World 3 · Loops · Guide 1 of 5Free guide
What is a loop?
Six hops, one block. That is what a loop is for.
Meet the loop block
A loop is a block with a slot in it. Another block goes inside the slot, and the loop runs that block again and again. The number on the loop says how many times. Put one hop inside a loop, set the number to 6, and the frog hops six times. You say it once. The frog does it six times.
So this one block says: hop, six times.
See it work
Here is the same trip twice. First the long way, with one block for every hop. Then the same trip with a loop. Watch both.
Same hops, same lily pad. The loop did not change where the frog went — it changed how much you had to say.
Your turn
Now you're the programmer.
Can you get the frog to the lily pad?
Land the 🐸 right on the 🪷. It is six hops away.Solve it with 2 blocks → ⭐⭐⭐0 blocks
Blocks
Your program
Go further
What happens if you change the loop's number?
Tap the number on the loop until it says 3, then press play. The frog hops three times and stops in the water, halfway to the pad. Keep tapping the number until it comes back to 6, and the frog lands. A loop does exactly what its number says — not one more, not one less.
For grown-ups
A block that repeats what is inside it is called a loop, or iteration — the first idea in programming that lets a small program do a large amount of work.
Keep going
Next in World 3How big can a loop be? →Where this goes
Make a game other kids can play
The blocks on this page are a first taste. In a Kubrio project your kid builds a real game — powers, triggers, levels and all — and other kids get to play it.
