Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #median #input #number #list #print
ADD COMMENT
Topic
Name
9+6 =