Mega Code Archive
Categories
/
Python Tutorial
/
Collections
Len() returns the number of elements
s = set(['p', 'c', 'e', 'h', 's', 'o']) print len(s)