Blog

What is the output of the code below?

try:
list = [2, 3, 4, 5]
x = list[:2]
print(‘First’)
except IndexError:
print(‘Second’)
else:
print(‘Third’)
finally:
print(‘Fourth’)