Answers for "how to find mean and median in python"

3

median in python

import statistics

statistics.median(list_name)
Posted by: Guest on May-23-2020
0

calculate mean median mode in python

>>> import statistics

>>> statistics.median([3, 5, 1, 4, 2])
3

>>> statistics.median([3, 5, 1, 4, 2, 6])
3.5
Posted by: Guest on January-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language