Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python append list to list

list1 = [1, 2]
list2 = [3, 4]

# Combine list1 and list2
list1.extend(list2)

print(list1)
[1, 2, 3, 4]
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #append #list #list
ADD COMMENT
Topic
Name
1+7 =