You are viewing a single comment's thread. Return to all comments →
import numpy as np n,m=map(int, input().split()) l=[] for _ in range(n): l.append(list(map(int, input().split()))) ar=np.array(l) print(np.mean((ar),axis=1)) print(np.var((ar),axis=0)) print(round(np.std(ar),11))
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Mean, Var, and Std
You are viewing a single comment's thread. Return to all comments →