21
What is the output of the following code?
from collections import defaultdict
g = defaultdict(list)
g['a'].append(1)
print(dict(g))Medium
What is the output of the following code?
from collections import defaultdict
g = defaultdict(list)
g['a'].append(1)
print(dict(g))Log in to join the discussion.