We use cookies to enhance your browsing experience.
Union and intersection.
a = {1, 2, 3} b = {3, 4, 5} print(a | b) # Union {1, 2, 3, 4, 5} print(a & b) # Intersection {3}
We use cookies to enhance your experience and serve personalized ads.