Say I have a list of lists as follows (which I do):
[['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3']]
What I want to accomplish is if in any list Value1 & Value2 equal the Value1 & Value2 of any other list, I want to merge those two lists so only one is preserved and the two values for Value3 are summed (then append the list back to the list of lists).
I'm thinking along the lines of looping through the lists within the list, comparing the lists for matches where & are equal, and somehow merging them so that is summed. Anyone have an idea?