B = {'c', 'd', 'e'}
C = {'a', 'c', 'e'}
intersect_AB = A.intersection(B)
intersect_BC = B.intersection(C)
intersect_AC = A.intersection(C)
print(intersect_AB, intersect_BC, intersect_AC)
Попарное пересечение множества в Python