Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python array append array

a = [1, 2, 3]
b = [10, 20]

a.append(b) # Output: [1, 2, 3, [10, 20]]
a.extend(b) # Output: [1, 2, 3, 10, 20]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #array #append #array
ADD COMMENT
Topic
Name
8+8 =