I have two lists:
x = [['a', 1], ['b', 2], ['c', 3]]
y = [['a', 4], ['c', 6]]
I would like to keep only the common elements of the letters and combine the 2 lists into:
[['a', 1, 4], ['c', 3, 6]]
How can I do that?
I have two lists:
x = [['a', 1], ['b', 2], ['c', 3]]
y = [['a', 4], ['c', 6]]
I would like to keep only the common elements of the letters and combine the 2 lists into:
[['a', 1, 4], ['c', 3, 6]]
How can I do that?