Answers for "Set symmetric Using the Symmetric Difference Operator (^) Method"

0

Set symmetric Using the Symmetric Difference Operator (^) Method

# Set X
X = {1, 2, 3}

# Set Y
Y = {2, 3, 4}

# Set Z
Z = {2, 3, 4}

print(X^Y)
print(X^Z)
print(Y^Z)

# symmetric difference with self
print(X^X)
print(Y^Y)
Posted by: Guest on April-08-2022

Code answers related to "Set symmetric Using the Symmetric Difference Operator (^) Method"

Python Answers by Framework

Browse Popular Code Answers by Language