Answers for "how to concanetae two lists into one python"

0

how to concatenate two lists in python

list1 = ["Hello ", "take "]
list2 = ["Dear", "Sir"]

resList = [x+y for x in list1 for y in list2]
print(resList)

#['Hello Dear', 'Hello Sir', 'take Dear', 'take Sir']
Posted by: Guest on July-06-2021

Code answers related to "how to concanetae two lists into one python"

Python Answers by Framework

Browse Popular Code Answers by Language