Erreur de domaine mathématique Python

The ValueError: math domain error 
is raised when you perform a mathematical function on a negative 
or zero number which cannot be computed.

To solve this error, make sure you are using a valid number 
for the mathematical function you are using.

Most common from using the sqrt() method and the log() method.
Use a if else or try except to circumvent it
NotACoder