human
How can I compare two lists in python and return matches
assistant
Here is some code to compare two lists in python `a` and `b` and return matches

set(a).intersection(b)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.