How to sum all the values in a dictionary?

As you’d expect:

sum(d.values())

Leave a Comment