Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python add item to list

# to add an item to a list
list.append(item)

# To extend an list with a new list
list1.extend(list2)
 
PREVIOUS NEXT
Tagged: #python #add #item #list
ADD COMMENT
Topic
Name
2+5 =