-
Find what type of exception is raised.
-
Hanlde the exception in try..except
-
If operation successful , print "the operation is successful"
-
if operation fails, handle the specific exception that is raised , and print a relevant message.
def additoin(x, y): x = 10 y = 20 print("Addition:", x + b) additoin(10, 20)
abdullah-1420 / exceptions Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tuwaiq-python-4/exceptions