Mega Code Archive

 
Categories / Python Tutorial / Collections
 

Symmetric Difference ( ^ )

s = set('ABC') t = frozenset('bookBC') print s ^ t