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 far Here’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:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
Welcome to the forums
Your code for the exception
print('List must contain nine numbers.')
ValueError. You need to check for 9 input values and
ValueError with the given message if there are not 9 values to pass that test.
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
ValueError exception with the message: “List must contain nine numbers.”
So, you need to determine if the input contains 9 numbers, and if not,
exception as described in the specification. You can’t use
except as they are for catching and handling exceptions.