The answer is A 100 percent. Because you are trying to raise another exception while handling ZeroDivisionError using keyword "raise...from..." which is explicit chaining, but as OwnMath is not derived from any superclass exception, resulting in Typeerror. However, your previous exception will be preserved by the python, i.e. typeerror is linked to zerodivision error, which happened because of the __context__ attribute. So, this is implicit chaining.
OwnMath should be derived from BaseException. Run this code and you'll get an exception. If it is derived, it's an example of explicitly chained exception.
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
deyoz
4 weeks, 1 day agotrebornamor
7 months, 3 weeks agoghozlane
9 months, 3 weeks agotankwayep
11 months, 1 week ago_cherre_
1 year, 1 month agow_w_w_w_w_w
1 year, 1 month ago