Skip to content

Commit 5e1472b

Browse files
authored
Update MeanVarandStd.py
Fixed the solution for Numpy challenge Mean, Var, and Std
1 parent 55ebcee commit 5e1472b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Numpy/MeanVarandStd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Domain : Python
55
Author : Ahmedur Rahman Shovon
66
Created : 15 July 2016
7+
UUpdated : 24 June 2023
78
Problem : https://www.hackerrank.com/challenges/np-mean-var-and-std/problem
89
"""
910

@@ -17,4 +18,4 @@
1718
np_ar = numpy.array(ar)
1819
print(numpy.mean(np_ar, axis=1))
1920
print(numpy.var(np_ar, axis=0))
20-
print(numpy.std(np_ar, axis=None))
21+
print(round(numpy.std(np_ar, axis=None), 11))

0 commit comments

Comments
 (0)