Question: Why can't we use try / except with SyntaxError or IndentationError? Question 5 options: Because these require a special form of exception handling which does
Why can't we use tryexcept with SyntaxError or IndentationError?
Question options:
Because these require a special form of exception handling which does not involve tryexcept
If either of these exceptions are encountered, our code won't even run. If it won't run, we can't handle the exception.
Because the Python interpreter handles these for us automatically.
Because SyntaxError and IndentationError aren't real exceptions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
