Mega Code Archive
Categories
/
Python
/
Buildin Function
A sentence is split up into a list of words
sentence = 'It is raining cats and dogs' lengths = map(lambda word: len(word), words) print lengths