6 lines
90 B
Python
6 lines
90 B
Python
def mean(x):
|
|
total = 0.0
|
|
for v in x:
|
|
total += v
|
|
return total / len(x)
|