CodeLab Academy 📞 9936 6696
← Lessons 🧩 Scratch for Beginners

Loops

## Why do we need loops? Instead of copying the same block 10 times, we use a **loop**. ## Kinds of loops - `repeat (10)` — repeats exactly 10 times - `forever` — repeats forever (great for games) - `repeat until <...>` — repeats until the condition becomes true ## Drawing a square ``` when green flag clicked pen down repeat (4) move (100) steps turn right (90) degrees end ``` > 🧠 Think about it: how many degrees do you turn to draw a shape with 6 sides? (360 ÷ 6)
← Previous Next →

💡 Want to track which lessons you've read and solve problems for points? Sign up for free or log in.