what is difference between ValueError and Exception in python?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ValueError
inherits fromException
. You can decide to trap either onlyValueError
, orException
, that’s what exception inheritance is for.In this example: