List

In Python, a list is used to store multiple values within a single value.

temperature_list = [68, 73, 70, 74, 76, 72, 74]  
len(temperature_list) # 7  
type(temperature_list) # list  
mixed_list = [-2, 2.5, 'ucsd', [1, 3]]  

We can calculate the mean of a list easily.

sum(temperature_list) / len(temperature_list) # 72.42857142857143