programming-examples/python/Sets/Python program to create a symmetric difference.py
2019-11-15 12:59:38 +01:00

5 lines
129 B
Python

setx = set(["apple", "mango"])
sety = set(["mango", "orange"])
#Symmetric difference
setc = setx ^ sety
print(setc)