I have this list structure:
lst = [[['a', 100],['b', 200],['d', 325]],[['a', 50],['b', 250],['c', 75]]]
'lst' can contain an arbitrary number of sublists (len(lst) can be bigger than 2)
As an output I want:
output = [['a',100,50],['b',200,250],['c',0,75],['d',325,0]]
Here is another example:
lst = [[['a', 100],['b', 200],['d', 325]],[['a', 50],['b', 250],['c', 75]], [['a', 22], ['b', 10]]]
output = [['a', 100, 50, 22],['b', 200, 250, 10], ['c', 0, 75, 0], ['d', 325, 0, 0]]
How would you do that?