Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove element from list by index

letters = ["a", "b", "c", "d", "e"]
letters.pop(0)
letters.pop(1)
print(letters)
#pop will also return the value if you want to use it
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #remove #element #list #index
ADD COMMENT
Topic
Name
9+7 =