Welcome to the Butterfly Garden! A tiny caterpillar wants to grow big and become a butterfly! But typing the same step over and over is BORING! Good coders use a LOOP — a magic block that says REPEAT! Write it ONCE, choose how many times, and watch the computer do it AGAIN and AGAIN! Today YOU are the Garden Coder! 🐛
🔄 What is a Loop?
A LOOP tells the computer to do something AGAIN and AGAIN! Want to grow 5 caterpillar segments? Instead of writing "grow" five separate times, you write it ONCE inside a loop and say REPEAT 5 TIMES! The computer counts: 1... 2... 3... 4... 5... done! Loops save you from typing the same thing over and over. They are one of the MOST important powers in all of coding! 🔄
🔗 You already learned SEQUENCE (order matters), DECOMPOSITION (break big into small), MEMORY BOXES (store values), BOOLEAN LOGIC (TRUE/FALSE), and PATTERNS (things that repeat). Now learn LOOPS — the superpower of REPEATING steps without writing them over and over! 🔄
CHALLENGE 1 of 3
Grow the caterpillar! Set REPEAT to 3 and tap Run Loop!
☀️☁️☁️🦋🌼🌸🌷
🔄 LOOP— / —
🐛 STATUS🌱 READY
🦋
Set REPEAT to 3 and tap Run Loop! 🔄
⚙️ Loop Block — build your REPEAT!
🔄 REPEAT
1
TIMES
{
}
👆 Set REPEAT to 3, then tap Run Loop to grow the caterpillar!
🐛
My Caterpillar
3 segments · Green
🐛 What You BUILT: Loop-Powered Caterpillar
🔄Loops tell the computer to do something AGAIN and AGAIN — no need to type it over and over!
🔢The repeat count controls how many times the loop runs. REPEAT 3 = three times!
⚡One loop block can do the work of many steps — that's why coders LOVE loops!
🦋Real programs use loops everywhere — animations, games, music — anything that repeats!
🦋 Next time: A NEW coding adventure awaits at Code Explorer! Come back tomorrow — your loop skills are getting powerful! ✨
🐛
Caterpillar Crawl!
Welcome to the Butterfly Garden! A tiny caterpillar needs YOUR help to grow big and transform! Use a LOOP — a block that says REPEAT — to grow segments and eat leaves without typing the same thing over and over! Ready to loop? 🔄
🌱Grow the caterpillar with a REPEAT 3 loop!
🍃Feed it 5 leaves with a REPEAT 5 loop!
🎨Design YOUR OWN caterpillar with loops!
🎉
Loop Power!
Your loop did all the work — the caterpillar grew!
🏆 LESSON 65 COMPLETE
🦋
You're a Loop Master!
You learned LOOPS — the superpower of REPEATING steps! You grew a caterpillar, fed it leaves, and watched it transform into a butterfly — all powered by REPEAT blocks! Instead of typing the same step many times, loops do it AGAIN and AGAIN automatically. Every great coder uses loops every single day — and now YOU can too! 🔄
📖 What you learned
🔄 Loops = repeat a step AGAIN and AGAIN
🔢 The repeat count controls how many times it runs