Which keyword is used to handle exceptions in Python?

Options

  • A. try-except
  • B. error-catch
  • C. throw-catch
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. try-except

Detailed Explanation

Python uses the try and except blocks to handle exceptions.