Level 4

Make a List

Level 4 · Chapter 7

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 6–8

Name variables well and work with their values.

Code 2-AP-11Read the official text

Common Core State Standards for Mathematics

Number & Operations — Fractions · Grade 5

Multiply and divide with fractions.

Code 5.NF.B.4Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will create and modify a list to store multiple values.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 2
✦ CSTA 2-AP-11 · ISTE 1.5.c · Standards
🎯 I cancreate and modify a list to store multiple values
🧩 New blocks5 blocks
📝 New words5 words
⏱ Lesson time~35 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students often think list index starts at 0 like some other languages — Scratch lists start at 1.
  • Students may confuse 'delete all of' with deleting the list itself. The list still exists; all items are removed.

🎯 Differentiation

🐢 Struggling: Have students write their 5 grocery items on paper first, then type them one at a time.

🚀 Advanced: Challenge students to add items using a repeat loop with 'ask and answer' instead of hardcoding values.

💡 During the lesson

  • Warm-UpAsk: "How many items can a variable hold? (One.) How many items can a list hold? (Many.)" Draw a single box on the board for a variable, then a column of boxes for a list. Students grasp the difference immediately with this visual contrast.
  • Try ItProject the block shapes. Point out the list name in the oval — just like a variable name. Emphasize two pairs: delete all of clears every item but the list still exists; hide list only hides the box on stage — the items are still inside.
    In the second experiment the loop is the same repeat block from Level 2. Ask how many blocks a loop saves when the list needs 20 items. Fix It is the key one — without clearing the list first, items accumulate on every run. This is a very common real-world bug. Let students discover it themselves before explaining. In the third experiment, stress that hide list only hides the box on stage; the items still exist — students often think hiding deletes the data.
  • PlanHave students write their own 5 items before building. This makes the Build step feel personalized and increases engagement.
  • BuildWalk the room after step 10. Look for students who forgot the delete all of at the start — their list will have duplicate items after the second run. Point at the two stage boxes and name the contrast: one value in Store, many items in Groceries.