checking mean mode median in one command python code example
Example 1: statistics mode python when no.s are same
import statistics
statistics.mode(x) #mean and median are also available.
Example 2: how to get median mode average of a python list
>>> import statistics
>>> statistics.mode([4, 1, 2, 2, 3, 5])
2
>>> statistics.mode([4, 1, 2, 2, 3, 5, 4])
4
>>> statistics.mode(["few", "few", "many", "some", "many"])
'few'