Task 4
Write a function that takes as input a list of numbers and then returns as result the "representative" value among these numbers. The
"representative" number is the number which is closest to the arithmetic average of these numbers.
For example if the numbers are 9 12.75 14.25 6.3 15.2 8.5 20.5 5.9 7.8 16.4, then the "representative" value if 12.75 (as it is the closest value to
11.66 which is the arithmetic average of the given numbers).
[] def representativeValue(someList):
pass
L1 = [9, 12.75, 14.25, 6.3, 15.2, 8.5, 20.5, 5.9, 7.8, 16.4]
print(representativeValue(L1))
12.75