Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python delete from list

l = list[1, 2, 3, 4]
l.pop(0) #remove item by index
l.remove(3)#remove item by value
#also buth of the methods returns the item
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #python #delete #list
ADD COMMENT
Topic
Name
1+6 =