How can I compare two lists in python and return matches
Not the most efficient one, but by far the most obvious way to do it is: if order is significant you can do it with list comprehensions like this: (only works for equal-sized lists, which order-significance implies).