Answers for "how to concatinate the two values of two list in python"

7

how to concatenate two lists in python

listone = [1,2,3]
listtwo = [4,5,6]

joinedlist = listone + listtwo
Posted by: Guest on November-19-2019
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 concatinate the two values of two list in python"

Python Answers by Framework

Browse Popular Code Answers by Language