Membership (in, not in) : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

Membership (in, not in)


s = set('ABC')
t = frozenset('CBDEF')
print 'k' in s
print 'k' in t
print 'c'  not in t



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set