For example, in Blockly this is how you would write a list with the items 9, 43, -11 and assign the list to a variable called ‘data”:
And this is how you would create the same list in Python:
data = [9, 43,-11]
The following example demonstrates how to first create a new empty list in blockly. It repeatedly measures the sound level and append the list with that measurement. The list will quickly grow longer and longer. At the same time it creates a plot where it selects the largest number from the list (the graph will grow every time a new record loud sound is measured).