(Union) Update ( | = ) : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

(Union) Update ( | = )


s = set('ABC')
u = frozenset(s)
s |= set('pypi')
print s



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set