Answers for "how to use mean python"

0

how to calculate mean in python

import statistics

a = [1,2,3,4,5]

mean = statistics.mean(a) 
#Similar for other values such as variance, standard deviation
Posted by: Guest on May-07-2020
2

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

Python Answers by Framework

Browse Popular Code Answers by Language