For example, I have following two lists
listA=[\'one\', \'two\' , \'three\'] listB=[\'apple\',\'cherry\',\'watermelon\']
How can I pair those two lists to
specifically using map and lambda as asked...
list(map(lambda tup: ' '.join(list(tup)), zip(listA,listB)))
though I'd probably break that up to make it more readable
zipped = zip(listA,listB)
tup2str = lambda tup: ' '.join(list(tup))
result = list(map(tup2str, zipped))
# ['one apple', 'two cherry', 'three watermelon']
EDITED - per comment below, listCombined = list(zip(listA,listB))
was a waste