len() returns the number of elements : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

len() returns the number of elements


s = set(['p''c''e''h''s''o'])
print len(s)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set