Python - Custom Exceptions
Which of the following is the correct syntax to catch all exceptions except system-exiting ones?
Exception catches most errors but excludes system-exiting exceptions like SystemExit and KeyboardInterrupt.except Exception: is the standard way to catch all regular exceptions safely.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions