Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
map(str.__add__,a,b)
Just like your code of
map(lambda x,y:x+y,a,b)
but withUses the build-in method string addition method __add__ that is invoked by + on strings in place of your anonymous function lambda x,y:x+y.
__add__
+
lambda x,y:x+y
but with the build-in string addition method.
Uses the build-in method string addition method __add__ that is invoked by + on strings in place of your anonymous function lambda x,y:x+y.