Question
When using try / except to protect risky code, where should you place statements that are likely to throw a runtime exception?
Select one:
a.
After the indented block of "except" statements
b.
Before the "try" statement
c.
Indented underneath the "try" statement
d.
Indented underneath the "except" statement
Select one:
a.
After the indented block of "except" statements
b.
Before the "try" statement
c.
Indented underneath the "try" statement
d.
Indented underneath the "except" statement
Answers
GPT 3.5
c. Indented underneath the "try" statement