What does a bare except: clause catch in Python?
Correct answer
D. All exceptions, including KeyboardInterrupt and SystemExit
6 views
D. All exceptions, including KeyboardInterrupt and SystemExit
6 views
A bare except catches everything and is discouraged; use except Exception instead.
Asked in: Python Interview Exception Handling
https://docs.python.org/3/tutorial/errors.htmlNot sure why the answer is D? Ask here and get an explanation.