human
Mapping a string into a list of pairs
assistant
Here is some code to get a list of pairs from a string `word` using lambda function

list(map(lambda x, y: x + y, word[:-1], word[1:]))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.