LogiQuest
Back to Dictionaries
1

What is the output of the following code?

d = {'a': 1, 'b': 2}
d['c'] = 3
print(len(d), d['b'])
Easy

Discussion (0)

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

Log in to join the discussion.