dict_list (list[dict[_Key, int]]) – A list of dictionaries to sum together.
operation (Callable[[int, int], int]) – the operation to use to combine values at keys.
The operator library defines functions to do this.
Function should take two values, and return one.
Returns:
A single dictionary of all the dicts in dict_list summed together.