I am comparing between a tuple of tuples and a list of tuples. I need to get the common elements out in a list.
Suppose that I have a tuple k1= ((91, 25),(94, 27),(100, 22))
and a list k2 = [(1,2), (4, 2), (100, 22)]. How do I compare the elements in k1 and k2
and get a list of the common elements?
Expected output for the above example:
[(100, 22)]