Finding Intersection In Python