OverIQ.com
Run (or Hit F9)
s1 = {20, 40} s2 = {10, 20, 30, 40, 50} s3 = s1.intersection(s2) print(s3) s4 = s1 & s2 print(s4)