From 5e1472b1985f5a81823096c3c11e52698b920eb7 Mon Sep 17 00:00:00 2001 From: Ahmedur Rahman Shovon Date: Sat, 24 Jun 2023 21:02:27 -0500 Subject: [PATCH] Update MeanVarandStd.py Fixed the solution for Numpy challenge Mean, Var, and Std --- Numpy/MeanVarandStd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Numpy/MeanVarandStd.py b/Numpy/MeanVarandStd.py index 2cb4e8e..dc8445c 100644 --- a/Numpy/MeanVarandStd.py +++ b/Numpy/MeanVarandStd.py @@ -4,6 +4,7 @@ Domain : Python Author : Ahmedur Rahman Shovon Created : 15 July 2016 +UUpdated : 24 June 2023 Problem : https://www.hackerrank.com/challenges/np-mean-var-and-std/problem """ @@ -17,4 +18,4 @@ np_ar = numpy.array(ar) print(numpy.mean(np_ar, axis=1)) print(numpy.var(np_ar, axis=0)) -print(numpy.std(np_ar, axis=None)) +print(round(numpy.std(np_ar, axis=None), 11))