The ____ keyword is used to create a block of code that can handle exceptions in Python.

  • catch
  • finally
  • throw
  • try

The try keyword is used in Python to create a block of code that might raise exceptions. It is followed by an associated except block that catches and handles those exceptions. This combination allows for controlled error handling in Python.

Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *