jorfus
0
Q:

defaultdict count key value pairs

d = {'a': 1, 'b': 1, 'c': 3, 'd': 4}
>>> sum(d.values())
0

New to Communities?

Join the community