How to Update Sets : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

How to Update Sets


s = set('ABC')
s.add('z')
print s
s.update('BCD')
print s
s.remove('DEF')
print s
s -= set('EFG')
print s



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set