© Eduardo A. Vlieg 2016

Eduardo A. Vlieg, Scratch by Example, 10.1007/978-1-4842-1946-1_9

9. Lists

Eduardo A. Vlieg

(1)Curacao, Curaçao

Variables give you more flexibility in your scripts, as you learned in Chapter 8, but are limited to storing a single value at any one time. What if you need to store multiple, related values, such as a wish list or a grocery list? You could use several separate variables, but you’d have to create them all ahead of time, which takes time and guess work. Scratch offers another, easier solution: you can create a list.

Just like the kind you write on paper, a list in Scratch can store multiple values in one place. Like variables, a list can contain either strings of characters (letters, numbers, or symbols) or numeric ...

Get Scratch by Example: Programming for All Ages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.