Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbhatiya authored Apr 17, 2020
1 parent 956abc8 commit c1344a3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Mean, Var, and Std.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Python Mean, Var, and Std HackerRank solution

import numpy as np

np.set_printoptions(legacy='1.13')
N,M=map(int,input().split())
array=np.array([list(map(int,input().split())) for _ in range(N)])

print(np.mean(array,axis=1))
print(np.var(array,axis=0))
print(np.std(array))

0 comments on commit c1344a3

Please sign in to comment.