Basic Try and Except in Python || Try and Except || Exception Handling || Python

In this, we are going to see an example of basic try and except in python that is done using Exception Handling in Python Programming Language.

try:
    print(a)
except:
    print("An exception occurred as a is not defined")

# 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