In [1]:
a = [1,3,5]
In [5]:
sum(a) / len(a)
Out[5]:
In [6]:
b = True
In [8]:
not b
Out[8]:
In [12]:
def find_mean(values):
# TODO: Return the average of the values in the given Python list
return sum(values) / len(values)
In [14]:
print(find_mean([1, 3, 4]))
In [ ]: