Run »
x = {"apple", "banana", "cherry"} y = {"google", "microsoft", "apple"} z = x.symmetric_difference(y) print(z)
{'google', 'banana', 'microsoft', 'cherry'}