median of a list python code example
Example 1: median of a list python
import statistics
lst = [1,3,6,13,27]
median_value = statistics.median(lst)
print(median_value)
Example 2: median in python
import statistics
statistics.median(list_name)
import statistics
lst = [1,3,6,13,27]
median_value = statistics.median(lst)
print(median_value)
import statistics
statistics.median(list_name)