Â
In this, we are going to see an example on Value Error that is done using Exception Handling in Python Programming Language.
from math import sqrt
try:
sqrt(-15)
except ValueError:
print("Square root of a negative number is not possible")
# Coded by Saahil
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP