How to Access Values in Sets : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

How to Access Values in Sets


s = set('ABC')
print s
t = frozenset('BCD')
print t
print 'k' in s
print 'k' in t
print 'c' not in t
for i in s:
   print i



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set