Computer Science

The order of exception handling in Python is try, followed by except, and then finally.

Python Exception Handling

1 Like

Answer

True

Reason — The order of exception handling in Python is as follows: first, the try block contains the code that may raise an exception. Then, the except block is used to handle specific types of exceptions that may occur within the try block. Finally, the finally block, if present, is executed whether an exception is raised or not.

Answered By

1 Like


Related Questions