You are viewing a single comment's thread. Return to all comments →
arr=sorted(arr) if n%2==0: l=[arr[i] for i in range(round(n/2))] u=[arr[i] for i in range(round(n/2),len(arr))] return int(statistics.median(l)),int(statistics.median(arr)),int(statistics.median(u)) else: l=[arr[i] for i in range(round(n/2))] u=[arr[i] for i in range(round(n/2)+1,len(arr))] return int(statistics.median(l)),int(statistics.median(arr)),int(statistics.median(u))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Quartiles
You are viewing a single comment's thread. Return to all comments →