Working with tuples
Other than the perks of tuple
unpacking and packing, tuples
are as easy to operate as lists
. They provide the same set of features except for the ones that modify the container.
Knowing that you are asked to compute the mean of this tuple
:
numbers = (4, 50, -1, 9, 110, 60, -89, 24, 19, 82, -43, 0, -4, 8)
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB