Python - Advanced Exception Handling
What will be the output of this code?
try:
raise KeyError('Missing key')
except ValueError:
print('Value error caught')
except KeyError as e:
print(f'Caught error: {e}')