Answers for "how to return median value of list in python"

1

median of a list python

import statistics

lst = [1,3,6,13,27]
median_value = statistics.median(lst)
print(median_value)
Posted by: Guest on March-25-2021
2

how to get median mode average of a python list

>>> import statistics

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

Code answers related to "how to return median value of list in python"

Python Answers by Framework

Browse Popular Code Answers by Language