python sum list of dictionaries by key code example Example: sum all values of a dictionary python sum(dictionary.values())