+ 2

What's wrong with the code?

We have to solve this problem using numpy. It's showing error everytime. How to solve the problem? https://code.sololearn.com/c62bN3PBHy89/?ref=app

10th Sep 2022, 1:24 PM
Srishty M
Srishty M - avatar
3 Réponses
+ 2
The first problem is that the list comprehension needs a value (or expression) before the keyword for. Additionally, I'm thinking that "within one standard deviation" would include the values that are +/- one standard deviation from the mean. Though it may not make a difference statistically, in practice it may give a different result.
10th Sep 2022, 1:37 PM
Steve
Steve - avatar
+ 2
Thanks all for ur replies. But finally, i solved it right. !✌🏻 https://code.sololearn.com/cu8efqFfC72k/?ref=app
10th Sep 2022, 11:10 PM
Srishty M
Srishty M - avatar