I merged 2 lists and created new list which is having both lists data but im struck at cleaning my nested list.I need to remove duplicates keys and merge values for that duplicate key
list1 = [('ID1', 'Name'), ('ID2, 'Name'), ('ID2', 'team')]
expected output should be:
[('ID1', 'Name'), ('ID2, 'Name,team')]