You are viewing a single comment's thread. Return to all comments →
import numpy as np if __name__ == "__main__": N, M = map(int, input().split(" ")) my_arr = np.array([list(map(float, input().split(" "))) for _ in range(N)]) print(np.mean(my_arr, axis = 1)) print(np.var(my_arr, axis = 0)) print(round(np.std(my_arr), 11))
Seems like cookies are disabled on this browser, please enable them to open this website
Mean, Var, and Std
You are viewing a single comment's thread. Return to all comments →