Mean, Var, and Std

  • + 0 comments
    import numpy as np 
    n,m = map(int,(input().split()))
    my_array = np.array([list(map(int,input().split())) for _ in range(n)])
    
    
    print(np.mean(my_array, axis = 1))  
    print(np.var(my_array, axis = 0)) 
    print(round(np.std(my_array),11))