• Home
  • What is the output of the code? try: list = 5*[0]+5*[10] x = list[9] print(''Done!'') except IndexError: print(''Index out of Bond! '') else: print(''Nothing is wrong!'') finally: print(''Finally block!'')
Question 1:
What is the output of the code?
try:
list = 5*[0]+5*[10]
x = list[9]
print(''Done!'')
except IndexError:
print(''Index out of Bond! '')
else:
print(''Nothing is wrong!'')
finally:
print(''Finally block!'')
A. ‘Finally Block!’
B. ‘Done!’ follow by ‘Nothing is wrong!’
C. ‘Nothing is wrong!’ followed by ‘Finally block!’
D. ‘Done!’ follow by ‘Nothing is wrong!’ followed by ‘Finally block’.

These questions are from this test. Would you like to take a practice test?

Python Quiz 3 | Englishfreetest.com