Answers for "mean python code"

0

mean python code

>>> import statistics

>>> statistics.mean([4, 8, 6, 5, 3, 2, 8, 9, 2, 5])
5.2
Posted by: Guest on August-12-2020
0

mean python code

>>> def my_mean(sample):
...     return sum(sample) / len(sample)
...

>>> my_mean([4, 8, 6, 5, 3, 2, 8, 9, 2, 5])
5.2
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language