Vidyalelo
Python · Q24

Exception Handling in Python

Programming · Python · question 24

Q24

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board