LogiQuest
Back to Dictionaries
13

What is the output of the following code?

d = {'a': 1, 'b': 2}
for k, v in d.items():
    print(k * v, end=' ')
Medium

Discussion (0)

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

Log in to join the discussion.