I have in my code a list with multiple dictionaries in it (at the moment I have a specific number of dictionaries, but I need the program to work for any n numbers of dictionaries).
For example, let say I have 3 dictionaries to simplify:
What I have:
my_list = [{'a': 1, 'b': 2, 'c': 3}, {'b':4, 'c': 5, 'd': 6}, {'c':7, 'd': 8, 'e': 9}]
what I need:
my_list = [{'a': 1, 'b': 6, 'c': 15, 'd': 14, 'e': 9}]
or
my_list = {'a': 1, 'b': 6, 'c': 15, 'd': 14, 'e': 9}
(It's essentially the same thing, isn't it?)
Thank you for your help!!!