Python - concatenate 2 lists
concatenation, list, python, python-2.7
Solution
You are getting zipped names from both the lists, simply join each pair, like this
print map(" ".join, zip(list_a, list_b))
# ['john walker', 'peter smith', 'paul anderson']
Problem
Hi I am new to both Python and this forum. My question: I have two lists: ``` list_a = ['john','peter','paul'] list_b = [ 'walker','smith','anderson'] ``` I succeeded in creating a list like this using `zip`: ``` list_c = zip(list_a, list_b) print list_c # [ 'john','walker','peter','smith','paul','anderson'] ``` But the result I am looking for is a list like: ``` list_d = ['john walker','peter smith','paul anderson'] ``` Whatever I tried I didn't succeed! How may I get this result?