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