Activity 01
Pairs Challenge: Shape Patterns
Pairs program a sprite to draw a square with repeat 4, then a star with repeat 10. They count blocks used without loops versus with, then share efficiencies. Extend by changing repeat numbers for new shapes.
Analyze how loops reduce the amount of code needed for repetitive tasks.
Facilitation TipDuring Pairs Challenge: Shape Patterns, circulate and ask each pair to count their blocks before and after adding loops, reinforcing code savings.
What to look forProvide students with two code snippets for drawing a square: one using four 'move forward' and 'turn right' blocks, and another using a 'repeat 4 times' loop with those blocks inside. Ask them to write one sentence explaining which code is more efficient and why.