Loops
Lesson: Loops
- What is a loop?
- A loop is a way to repeat a block of code.
- Computers are fast, so we can repeat a block of code as many times as we want.
- Most things we do with computers are done in loops.
- Types of loops in Scratch:
- Repeat () block for counting.
- Forever block never stops never stoping.
- Repeat Unitl () block for when you want to repeat until a condition is met.
Activity: Catch the bus
- Optional: Find a partner for pair programming.
- Follow the directions to complete your own Catch the bus project.
- Post your version of Catch the Bus to the class studio: “Catch the bus”.