If you want to access an exception object’s components and store them in an object called e, you have to use the following form of exception statement

If you want to access an exception object’s components and store them in an object called e, you have to use the following form of exception statement
A . except Exception(e):
B . except e=Exception:
C . except Exception as e:
D . such an action is not possible in Python

Answer: C

Explanation:

Reference: https://stackoverflow.com/questions/32613375/python-2-7-exception-handling-syntax

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments