Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove element from list python by index

>>> l = [1, 2, 43, 3, 4]
>>> l.pop(2) #enter the index as argument
43
>>> l
[1, 2, 3, 4]
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #remove #element #list #python #index
ADD COMMENT
Topic
Name
4+8 =