x = {"apple", "banana", "cherry"} y = {"google", "microsoft", "apple"} z = x.intersection(y) print(z) # Output: {"apple"}
set A.intersection(set B, set C, set D, …)