LogiQuest
Back to Dictionaries
19

What is the output of the following code?

d = {1: 'one', 2: 'two'}
print({v: k for k, v in d.items()})
Easy

Discussion (0)

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

Log in to join the discussion.