# Set X
X = {1, 2, 3}
# Set Y
Y = {2, 3, 4}
# Set Z
Z = {2, 3, 4}
print("Symmetric difference between X & Y", X.symmetric_difference(Y))
print("Symmetric difference between Y & Z", Y.symmetric_difference(Z))
print("Symmetric difference between X & X", X.symmetric_difference(X))
# The symmetric_difference() function can be used to create a new set containing
# the symmetric differences of two sets.
mySet = {1, 2, 3, 4}
mySet2 = {3, 4, 5, 6}
mySet3 = mySet.symmetric_difference(mySet2)
print(mySet3)
# Output:
# {1, 2, 5, 6}