मराठी

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×