a = ['one', 'two', 'three'] for x in a: print x, len(x)