you need to raise it, e.g.
Also it's better to have one function that validate the input, not two identical with only error message different...
if atribute == 0: raise ValueError("ERROR: One atribute of the shape is Zero\n")I don't see how it could work for attribute==0 case.
Also it's better to have one function that validate the input, not two identical with only error message different...
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs