►
Run
x = {'apple', 'banana', 'cherry'} y = {'banana', 'mango', 'apple', 'guava'} x.intersection_update(y) print(x)
Output