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

Is the following Python code valid?
Code:
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
 

Tìm kiếm

Back
Top