I have multiple lists of tuples containing a name and a count and I want to merge them by their name with the sum of their respective count. For example, I have :
l1 = [('House', 3),('Backyard', 2),('Frontyard', 4)]
l2 = [('House', 10),('street', 7),('Frontyard', 4)]
l3 = [('Backyard', 10),('street', 7),('Frontyard', 4)]
And I would like to get:
result : [('house', 13),('Backyard', 12), ('street', 14), ('Frontyard', 12)]