AssertionError: Value Error not raised by calculator

Tell us what’s happening:
I’m getting the error value error not raised I have tested all the test values from the test file manually and they work completely fine but when I run it in the boilerplate project it gives the value error plz have a look at my code and help a brother out.

Your code so farHere’s my code.

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: Mean-Variance-Standard Deviation Calculator

Link to the challenge:

Welcome to the forums @ak_alam.

Your code for the exception

  except ValueError:
    print('List must contain nine numbers.')

catches a ValueError. You need to check for 9 input values and raise a ValueError with the given message if there are not 9 values to pass that test.

Good luck.

Hi there jeremy I have tried many steps which involve doing if statements and putting try-except but this error still not resolve can you plz explain it

The specification says:

If a list containing less than 9 elements is passed into the function, it should raise a ValueError exception with the message: “List must contain nine numbers.”

So, you need to determine if the input contains 9 numbers, and if not, raise the exception as described in the specification. You can’t use try/except as they are for catching and handling exceptions.