Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add item to python list


test_list = [['abc','2'], ['cds','333'], ['efg']]
test_list[2].append('444')
# test_list is now: [['abc','2'], ['cds','333'], ['efg', '444']]

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #add #item #python #list
ADD COMMENT
Topic
Name
4+7 =