Answers for "merging two lists python"

5

add two list in python

list1 = ["a", "b" , "c"]
list2 = [1, 2, 3]

list1.extend(list2)
print(list1)
Posted by: Guest on May-17-2020
0

combine two lists python

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

joinedlist = listone + listtwo
Posted by: Guest on November-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language