Division by Zero Exception || Exception Handling || Python
In this we are going to see a basic program to solve divide by zero exception in Python Programming Language.



a = 10
b = 0

try:
    c = a/b
    print(c)
except ZeroDivisionError as e:
    print(e)

# Coded By Dhiraj Shelke


#ENJOY CODING


Post a Comment

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

Previous Post Next Post