Multiple Except Statements || Try and Except || Exception Handling || Python

In this, we are going to see an example of Multiple Except Statements that is done using Exception Handling in Python Programming Language.

try:
    print(a)
except ArithmeticError:
    print("Aruthmetic error has occured")
except ZeroDivisionError:
    print("Divided by zero")
except:
    print("An error other than arithmetic error has occurred")

# Coded by Saahil

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post