We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The issue some people are having appears to be with the formatting of the expected answers being different than the default format of the numpty results. (I'm basing this on the Python 3 version, so Python 2 might be different.)
It's further compounded by the fact that the format of the output isn't even consistent. For example, the expected output of the std function is 11 decimal points for 2 of the tests, and 12 decimals points for another.
In other words, to actually pass this one, you need to hack the string formatting of the answers, which is hardly ideal when learning python.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Mean, Var, and Std
You are viewing a single comment's thread. Return to all comments →
The issue some people are having appears to be with the formatting of the expected answers being different than the default format of the numpty results. (I'm basing this on the Python 3 version, so Python 2 might be different.)
It's further compounded by the fact that the format of the output isn't even consistent. For example, the expected output of the std function is 11 decimal points for 2 of the tests, and 12 decimals points for another.
In other words, to actually pass this one, you need to hack the string formatting of the answers, which is hardly ideal when learning python.