List (numbers/integers)
22May, 2019
How Can We Help?
Created On
byMatt
Print
You are here:
< Back
Maker of websites,
Teacher,
Cat enthusiast
Teacher,
Cat enthusiast
Latest posts by Matt (see all)
- The 2022 End of Year Website Update - 01/01/2023
- Celebrating Ada Lovelace day - 10/10/2022
- Website update 5/9/22 - 05/09/2022
![](https://computerscienced.co.uk/site/wp-content/uploads/2019/05/list-number-block.png)
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
![](https://computerscienced.co.uk/site/wp-content/uploads/2019/05/list-number-calculations-example.png)
This list which is stored as calculations, contains 3 numbers – 10, 20 and 30.
The generated Python code looks like this:
![](https://computerscienced.co.uk/site/wp-content/uploads/2019/05/list-number-calculations-example-python-code.png)
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.
Matt
administrator
Maker of websites,
Teacher,
Cat enthusiast