Run »
×
Change Orientation
def myfunc(a): return len(a) x = map(myfunc, ('apple', 'banana', 'cherry')) print(x) #convert the map into a list, for readability: print(list(x))
<map object at 0x056D44F0>
['5', '6', '6']
×
Report a Problem:
Your E-mail:
Page address:
Description:
Submit