Mediana listy Python
import statistics
lst = [1,3,6,13,27]
median_value = statistics.median(lst)
print(median_value)
alequenildo
import statistics
lst = [1,3,6,13,27]
median_value = statistics.median(lst)
print(median_value)
import math
list = [ 1 ,9, 4,5,3]
list.sort()
middle_index= len(list)/2
exact_middle_index = math.floor(middle_index)
median_value = list[exact_middle_index]
print(median_value)