Vidyalelo
Python · Q58

Exception Handling in Python

Programming · Python · question 58

Q58

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

A.
no, there is no such thing as else
B.
no, else cannot be used with except
C.
no, else 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