Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove idx of list python

a = [-1, 1, 66.25, 333, 333, 1234.5]
del a[0]
a
[1, 66.25, 333, 333, 1234.5]
del a[2:4]
a
[1, 66.25, 1234.5]
del a[:]
a
[]
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #remove #idx #list #python
ADD COMMENT
Topic
Name
7+5 =