Symmetric Difference Update ( ^ = ) : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

Symmetric Difference Update ( ^ = )


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



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set