6.2.4 Data

View

While defining variables, we noticed that variables are used to store information for use in programs. Scratch can store only numeric values in a variable which can be dropped into any program block space. From that definition, data is unprocessed information. That is the data that can be transformed into information to be used in any program.

So far, we have seen the initial variable blocks that appear when you open the Scratch and click on variable blocks. After these initial   variables, we can create a list that holds a set of variables.

To name the list, you click on “Make a List” in variable blocks and then a text area will show, and you can put the name of the list there.

Figure 160: Adding a list

 

The list has 7 Stack blocks, 4 Reporter blocks and 1 Boolean block.

Figure 161: The list has 7 Stack blocks, 4 Reporter blocks and 1 Boolean block

 

Figure 162: Explanation of list blocks 

 

After creating that list, you must give it values. There are 2 ways to give values: to create those values within Scratch or to import values from your computer.

Last modified: Friday, 22 October 2021, 11:22 AM