English

Which of the following blocks lets you test a block of code for errors? -

Advertisements
Advertisements

Question

Which of the following blocks lets you test a block of code for errors?   

Options

  • try

  • except

  • finally

  • None of the above

MCQ

Solution

try

Explanation:

Python uses the try and except block to catch and manage exceptions.

shaalaa.com
Handling Exceptions
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×