I have two tuples
A=[(1,Poland),(2,Canada),(3,Germany)]
B=[(1,16),(2,20),(3,54)]
How can i merge them together based on the first value of a tuple to get something like this
C=[(Poland,16),(Canada,20),(Germany,54)]
I found This but this answer is from 2015 maybe you know better solution. My data will be at most 10/20 tuples so we aren't dealing with huge datasets