The list block allows us to store similar numbers (integers) together as one complete item.
This list block allows us to store similar numbers together.
NB – It is important to note that this block simply stores these similar values. To change the values or see what values are in this list on the console we will need to use more code.
Each of the items in our list can be shown as a whole, individually and anything in our list can be changed or deleted.
Example
This list which is stored as calculations, contains 3 numbers – 10, 20 and 30.
The generated Python code looks like this:
Inputting this code into repl or any other Python IDE will not produce anything on the screen when we run it. We need to use more code to show it or manipulate our list.