problem originates from the.
chapter in map/reduce in Liao Xuefeng"s python tutorial. Use functions and map, to capitalize the first letter of the string in the list , and then return the list
the initial code is, for in iteration, and then the capitalize (), of the string is returned, but the return is single. It is not clear why the latter is not returned. I have learned a little bit of js, before, and I remember that it should be
map
labmdaoklambdalistcapitalizelambda
to be returned.
for answers, thank you!