LogiQuest
Back to Exceptions
5

What is the output of the following code?

d = {}
try:
    d['k']
except KeyError as e:
    print(type(e).__name__)
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.