You are viewing a single comment's thread. Return to all comments →
import numpy as np N, M = list(map(int, input().split())) array_list = [] for _ in range(N): inp= input().split() m_append= [] for i in range(M): m_append.append(int(inp[i])) array_list.append(m_append) numArray = np.array(array_list) print(np.mean(numArray, axis= 1)) print(np.var(numArray, axis = 0)) print(round(np.std(numArray), 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 →