LogiQuest
Back to Sets
12

What is the output of the following code?

s = {1}
try:
    s.remove(5)
except KeyError:
    print('KeyError')
Easy

Discussion (0)

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

Log in to join the discussion.