Tạ Bích Hạnh
Member
Is the following Python code valid?
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
Code:
try:
# Do something
except:
# Do something
else:
# Do something
B. no, else cannot be used with except
C. no, else must come before except
D. yes