The answer to my question is probably somewhere around here but I couldn't find it.
I have a two lists :
['batman','superman','spiderman',]
['batman','ironman','superman','flash','wonderwoman']
I want to compare the two lists and return the matching elements as a third list :
['batman','superman']
I only found this solution:
list=['a cat','a dog','a yacht']
string='a cat'
if string in list:
print 'found a cat!'
But it's only a comparison between a string and a list...