It is easy to check if an element of a list is in another list using any():
any()
any(elem in list2 for elem in list1)
but is there
def intersect(a, b): return list(set(a) & set(b)) print intersect(b1, b2)