O'Reilly logo

Scratch by Example: Programming for All Ages by Eduardo A. Vlieg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Eduardo A. Vlieg 2016
Eduardo A. VliegScratch by Example10.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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required