Computer Science

Which block is a mandatory block in exception handling process?

  1. try
  2. except
  3. finally
  4. else

Python Exception Handling

2 Likes

Answer

try

Reason — The try block is a mandatory component of the exception handling process because it encapsulates code that might raise exceptions, allowing them to be caught and handled effectively.

Answered By

1 Like


Related Questions