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)
Source by www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #python #add #item #list
ADD COMMENT
Topic
Name
5+4 =