• + 57 comments

    Python 3 - Dont reinvent the wheel ;)

    import numpy as np
    from scipy import stats
    
    size = int(input())
    numbers = list(map(int, input().split()))
    print(np.mean(numbers))
    print(np.median(numbers))
    print(int(stats.mode(numbers)[0]))