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

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

Tìm kiếm

Back
Top