• + 0 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))