Python Exercise: Create a symmetric difference
Python sets: Exercise-9 with Solution
Write a Python program to create a symmetric difference.
setx = set(["apple", "mango"]) sety = set(["mango", "orange"]) #Symmetric difference setc = setx ^ sety print(setc)
Python Code Editor:
Improve this sample solution and post your code through Disqus