Answers for "how to get median float from a list of numbers in python"

3

median in python

import statistics

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

find the median of input number in a list and print

import statistics
array = []
n = int(input())
for _ in range(n):
    array.append(int(input()))
print (int(statistics.median(array)))
Posted by: Guest on December-16-2020

Code answers related to "how to get median float from a list of numbers in python"

Python Answers by Framework

Browse Popular Code Answers by Language