I have a list and a list of tuple:
List:
[id1, id2, id3, id4, id5]
And a list of tuple :
[(id1, 'name1'), (id2, 'name2'), (id6, 'name6')]
I want to find common ids between above lists and make a list of names with common id:
['name1', 'name2']
Also I found this method in my searches:
set(result_product_id).intersection(result_order)
But it does not work for my issue
P.S. note that "id1 , id2 , id3 , ..." are integers and i write it this way to make it easier to ask
thx