Problem Statement
Which pair correctly reflects Python's exception hierarchy?
Explanation
BaseException sits at the root. Exception derives from it. SystemExit and KeyboardInterrupt also derive from BaseException, not from Exception.
This is why catching Exception does not trap KeyboardInterrupt by default.
Code Solution
SolutionRead Only
print(issubclass(Exception, BaseException)) # True
