Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

Tell us what’s happening:
Describe your issue in detail here.

So I managed to work on this project but for some reason that I can’t figure out, my code won’t pass the 2nd test.

Your code so far

boilerplate-mean-variance-standard-deviation-calculator (1) - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/110.0.1587.63

Challenge: Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

Link to the challenge:

Do you happen to have the error messages you’re receiving. They should state exactly what it doesn’t like. It may say something like 3.2838 is not equal to 3.2888 which indicates where the problem lies.

Sometimes something as little as number of decimal places can cause an issue. I do have to say you wrote a lot of code :slight_smile: I’ll explain why that is funny after pass.

Hi @AngbandShadow5! I copied and ran your code and found 1 error in the result for variance (one number was SLIGHTLY off) and 1 error in the result for standard deviation (one number was slightly off).

If you go into, you can see the three test cases and look into the desired answer for test case 2 and see where you went wrong. To visualize the test case 2 results for yourself then just go into the folder and test case 2 (test_calculate2) will show you the input given to the function for that test case and then you can copy the input and paste it into the folder to run test case 2 and see the output.

This should help you to at least spot where the issue is occurring.

I hope that this helps! If you have any more questions please feel free to ask!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.