I have 2 lists that have a few similar value, what I want is to print out the values that are only in both lists. I tried a list comprehension but it gives me a boolean list:
a=[2,3,1,5,7]
b=[2,5,9,3,5,10]
c=[d in a for d in b]
print (c)
from this I get the results below:
[True, True, False, True, True, False]
but I wanted the numbers familiar in both lists.