+ 1
Is there any bug in my code? [solved]
You are given an array that represents house prices. Calculate and output the percentage of houses that are within one standard deviation from the mean https://code.sololearn.com/c1ioY10tytVP/?ref=app
9 Answers
+ 4
What do you mean by "big"?
There is an error in the code. Please explain what the ode is supposed to do.
+ 4
If it is a sololearn task, please mention course name and task number so we can check on it!
+ 2
You did something like:
a<= b >= c
+ 2
A value cannot be smaller thant he lowe bound and greater than the upper bound at the same time.
Also consider using parentheses around the conditions when infexing:
data[(condition 1) & (condition 2)]
+ 2
That depends on you. But you could put [solved] or something like that additionally into the title
+ 1
Yes its from the course ' Python for Data Science' and the project name is 'House Price'
+ 1
Thanx, Lisa. I think the problem arose because of the parentheses because I corrected the bound afterwards.
0
My code is working now. Should I delete the post?
0
Ok, got it