Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add multiple items in list python

Mylist = [1, 2, 3]

#Appends multiple items using a list
Mylist += [4, 5]

#Mylist should be [1, 2, 3, 4, 5]
 
PREVIOUS NEXT
Tagged: #add #multiple #items #list #python
ADD COMMENT
Topic
Name
9+7 =