Consider the following try… except… else… instruction: try: … except: … else: … Select correct statement.
Consider the following try... except... else...
instruction:
try: ... except: ... else: ...
Select correct statement.
a. If the code in the try block executes correctly and no exception is raised, the code after the else statement is not executed.
b. If the code in the try block executes correctly and no exception is raised, the code is executed after the else statement, and only in this case.