def list_intersection(list1, list2):
return [item for item in list1 if item in list2]<EOL>
Take the not-in-place intersection of two lists, similar to sets but preserving order.
Does not check unicity of list1.