Python Programming - Exception Handling - Discussion

Discussion Forum : Exception Handling - General Questions (Q.No. 13)
13.
In Python, what is the purpose of the except block without specifying an exception type?
It catches all exceptions
It is a syntax error
It only catches specific exceptions
It is not allowed
Answer: Option
Explanation:
An except block without specifying an exception type catches all exceptions, which can be useful for handling unexpected errors.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.