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

 

相关文章: