Solution: string to length
examples/functional/map_string_to_len.py
animals = ['chicken', 'cow', 'snail', 'elephant', 'pig', 'zebra', 'gnu', 'praying mantiss', 'snake'] length = map(len, animals) print(length) #print(list(length)) for ln in length: print(ln)