Mega Code Archive
Categories
/
Python Tutorial
/
String
Measure some strings
a = ['cat', 'window', 'defenestrate'] for x in a: print x, len(x)