Question OOP-EXC-0032
EasyIn a Python try statement, when does the else block run?
- A.
Always
- B.
Only if the try block raised no exception
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Exception Handling question
In a Python try statement, when does the else block run?
Always
Only if the try block raised no exception
Sign up free to see the answer and a step-by-step explanation.
Never
Only if an exception occurred