Python - Exception Handling Fundamentals
Which of the following is the correct syntax to catch a ZeroDivisionError in Python?
try: followed by except ExceptionType: to catch errors.except ZeroDivisionError: syntax; others use invalid keywords like catch or incorrect formatting.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions