Difference Update ( - = ) : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

Difference Update ( - = )


s = set('ABC')
u = frozenset(s)
s = set(u)
s -= set('BC')
print s



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set