Computer Science

Which of the following keywords are not specific to exception handling?

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

Python Exception Handling

1 Like

Answer

else

Reason — The 'else' keyword in Python is not specific to exception handling but rather plays a role in conditional statements and control flow structures. On the other hand, in exception handling constructs, the main keywords are 'try,' 'except,' and 'finally.

Answered By

1 Like


Related Questions