Mean, Var, and Std

  • + 0 comments

    import numpy as np m,n=input().split() narr=np.array([list(map(int,input().split())) for i in range(int(n))]) print(np.mean(narr,axis=1)) print(np.var(narr,axis=0)) std=np.std(narr,axis=None) print(round(std,11))

    Efficient code with lesser lines