The function takes two sets and returns a set of all elements in set1 and set2 but not in both, code example
Example: intersection between two sets python
x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}
z = x.intersection(y)
print(z)
# Output: {"apple"}