Skip to content

Commit

Permalink
Create main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JawadSher authored Aug 30, 2024
1 parent 819f0ed commit 9a05a49
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 16 - NumPy Problems/11 - Mean - Var and Std/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import numpy as np

N, M = map(int, input().split())

np_array = np.array([[*map(int, input().split())] for i in range(N)])

mean_values = np.mean(np_array, axis=1)
var_values = np.var(np_array, axis=0)
std_value = np.std(np_array, axis=None)

print(mean_values)
print(var_values)
print(round(std_value, 11))

0 comments on commit 9a05a49

Please sign in to comment.