Symmetric Difference ( ^ ) : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

Symmetric Difference ( ^ )


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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Collections
» Set