Question
Which Python structure allows a program to handle an anticipated error without immediately terminating?
Select an option. Your answer will be checked instantly.
Correct Answer: D. `try` and `except`
Explanation:
Code that may fail is placed in a `try` block, and matching errors can be handled in `except` blocks. This supports controlled recovery from expected exceptional conditions.
Leave a Reply