hwo to get median number list code example
Example: 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)))
import statistics
array = []
n = int(input())
for _ in range(n):
array.append(int(input()))
print (int(statistics.median(array)))