Trần Khánh Ly
New member
Is the following Python code valid?
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
Code:
try:
# Do something
except:
# Do something
finally:
# Do something
B. no, finally cannot be used with except
C. no, finally must come before except
D. yes