how to return median float from a list of numbers in python code example
Example 1: median in python
import statistics
statistics.median(list_name)
Example 2: 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)))