Today you will access specific items in a list and measure its length.
1 Warm-Up
2 Predict
3 Try It
4 Plan
5 Build
6 Fix It
7 Extend
8 Math Challenge
For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 2
✦ CSTA 2-AP-11 · ISTE 1.5.c · Standards
| 🎯 I can | access specific items in a list and measure its length |
| 🧩 New blocks | 2 blocks |
| 📝 New words | 5 words |
| ⏱ Lesson time | ~35 min |
Teacher Guide
📋 Before class
⚠️ Common misconceptions
- Students often write item (0) of list — Scratch lists start at 1, not 0.
- Students may confuse 'length of list' with 'the last item' — length is the count, not a value.
🎯 Differentiation
🐢 Struggling: Start with a 3-item list so the loop is easier to trace. Add more items only after the pattern is clear.
🚀 Advanced: Challenge students to build a loop that reads only even-indexed items by using a counter that increases by 2.
💡 During the lesson
- Warm-UpAsk: "If I have a list of 5 names and I want to say each one, how many times does the loop need to repeat?" (5 — which is the length.) Connect
repeat (length of list)to this intuition. - Try ItDraw the list as a numbered column on the board. Point to each slot as you trace the loop: counter = 1 → read slot 1 → counter = 2 → read slot 2 … Students need this visual trace before coding.
Picking 0 in the third experiment is the classic "off-by-loop" bug: the index never advances. Have students predict what the Cat will say BEFORE they run it. Connect this to the Fix It section that follows. - PlanPoint out the separation of concerns: the setup (add items) is separate from the reading loop. This is decomposition. Ask: "Why do we delete all at the start?" to reinforce the Ch7 habit.
- BuildStep 8 is the key insight — because the loop uses
length of [list], it adjusts automatically. Ask: what wouldrepeat (5)do with six colors? (It skips the sixth.)
Show the picture first. Ask what will happen — everyone points or says one word.
Everyone picks an answer first. Then press the flag together.
Change one thing at a time. Run it, watch, then change the next thing.
Pairs put the cards in order before anyone opens Scratch.
Students build step by step. Walk around — help with questions, not with the mouse.
Ask: what did we want, and what did it do? Let them find it.
Fast finishers pick the next tier. Everyone else finishes their build.
Work it out on paper first. Then check it on the stage.