What is displayed when the following program is run?
try:
Practice Exception Handling – What is displayed when the following program is run?
try:
list = 10 * [0]
x = list[10]
print(“Done”)
except IndexError:
print(“Index out of bound”)
else:
print(“Nothing is wrong”)
finally:
print(“Finally we are here”)