Answers for "concatenate python lists"

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
2

python concatenate list of lists

x = [["a","b"], ["c"]]

result = sum(x, [])
Posted by: Guest on July-04-2020

Code answers related to "concatenate python lists"

Python Answers by Framework

Browse Popular Code Answers by Language