Examveda
Examveda

Is the following Python code valid?
try:
    # Do something
except:
    # Do something
finally:
    # Do something

A. no, there is no such thing as finally

B. no, finally cannot be used with except

C. no, finally must come before except

D. yes

Answer: Option D


This Question Belongs to Python Program >> Exception Handling In Python

Join The Discussion

Related Questions on Exception Handling in Python