Python - Advanced Exception Handling
Which of the following is the correct syntax for a try-except-finally block in Python?
try, then except, then finally.finally before except, which is invalid. except:
pass
try:
pass
finally:
pass starts with except, which is wrong. try:
pass
except:
pass
else:
pass uses else but no finally.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions