Skip to content

Commit

Permalink
Numpy!
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalmastud authored Feb 23, 2020
1 parent 0ce5949 commit 9b282a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Numpy/Mean, Var and Std/Solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import numpy as np

n,m = map(int, input().split())
b = []
for i in range(n):
a = list(map(int, input().split()))
b.append(a)

b = np.array(b)

np.set_printoptions(legacy='1.13')
print(np.mean(b, axis = 1))
print(np.var(b, axis = 0))
print(np.std(b))

0 comments on commit 9b282a1

Please sign in to comment.