Mixed Set Type Operations : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

Mixed Set Type Operations


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



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set