What does the else clause of a try statement do?
- A Runs only if no exception was raised in the try block
- B Runs whether or not an exception occurred
- C Runs only when an exception occurs
- D Is invalid syntax
Answer
Runs only if no exception was raised in the try block
The else block keeps the try block minimal, so it cannot accidentally catch an exception from unrelated follow-up code.





