Let\'s say I have a dictionary in which the keys map to integers like:
d = {\'key1\': 1,\'key2\': 14,\'key3\': 47}
Is there a syntactically
You can get a generator of all the values in the dictionary, then cast it to a list and use the sum() function to get the sum of all the values.
Example:
c={"a":123,"b":4,"d":4,"c":-1001,"x":2002,"y":1001} sum(list(c.values()))