Practice Drills Set 4: Lists & Custom Functions
Practice 1-based list indexing, deletion shifts, linear max-search, and parameterized custom blocks.
Lesson goal & core concept
Trace list mutations and function calls without off-by-one errors.
Deleting item 2 shifts item 3 into slot 2 immediately.
Step-by-step practice
Work through these steps in the Scratch editor, predicting each result before clicking the green flag.
- Start [A, B, C] → delete item 2 → result is [A, C], length 2, item 2 is C.
- Initialize max to item 1 of list (not 0!) so negative numbers work too.
- Trace calling Add(3,4) then Add(10,5) into a running total → 22.
Mini challenge & next steps
Write a custom block that counts how many numbers in a list are greater than 50.
FAQ
How long should I spend on "Practice Drills Set 4: Lists & Custom Functions"?
Aim for 15–20 minutes: read the concept, test the small example, modify one value to see what changes, and try the mini challenge.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.