Hop and repeat
Section 3: Sound and repeatingLesson 3.1 Β· β± 6 min
The π block repeats the blocks inside it. The number = how many times. This way we don't snap the same block many times.

- When π© is tapped
- Repeat π 3 times:
- β³ Hop π¦
π Another example: walk and hop
Two blocks inside π: two steps, then a hop. They repeat 4 times.

- When π© is tapped
- Repeat π 4 times:
- β³ Move right β‘οΈ 2
- β³ Hop π¦


βοΈ Practise
Hop 3 times.
βοΈ Practise here in the lessonβ Close the labor open the lab in a new page β
βοΈ Practise
Practice: walk and hop 4 times.
βοΈ Practise here in the lessonβ Close the labor open the lab in a new page β
π― Challenge yourself
Easy
Make Robo hop 5 times.
π Show the solutionπ Hide the solution

- When π© is tapped
- Repeat π 5 times:
- β³ Hop π¦

Medium
Robo goes up 2 and down 2, three times.
π Show the solutionπ Hide the solution

- When π© is tapped
- Repeat π 3 times:
- β³ Move up β¬οΈ 2
- β³ Move down β¬οΈ 2

Hard
A repeat inside a repeat: three hops, then 4 steps, all of it twice.
π Show the solutionπ Hide the solution

- When π© is tapped
- Repeat π 2 times:
- β³ Repeat π 3 times:
- β³ Move right β‘οΈ 4


