I have a list of dictionaries which looks like this:
[{'success': 10, 'failed': 15, 'manual': 20},
{'manual': 5, 'success': 10},
{},
{},
{'success': 20, 'manual': 25, 'failed': 30},
{'success': 2, 'manual': 4, 'failed': 6},
{},
{}]
I want to sum up the values of keys for first four dictionaries and then again sum up the values of keys for next four dictionaries which ultimately gives me finally an output of two dictionaries with summed values as below:
[{'success': 20, 'failed': 15, 'manual': 25},
{'success': 22, 'manual': 29, 'success': 36}]
Can someone help with a way to achieve this for a dynamic list?