हिंदी

State whether the following statement is True or False: In Python, Logical errors can be handled using try...except...finally statement. - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

State whether the following statement is True or False:

In Python, Logical errors can be handled using try...except...finally statement.

सत्य या असत्य
Advertisements

उत्तर

This statement is false.

Explanation:
  1. Runtime Errors: The try..except..finally A block is used to handle Runtime Errors (also known as exceptions), which occur during program execution (e.g., division by zero).
  2. Logical Errors: These are flaws in the programmer's logic in which the code runs without crashing but produces incorrect output. Since no exception is raised, the except A block cannot catch or handle them.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2025-2026 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×