Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python delete first two indexes

l = [1, 2, 3, 4, 5]
del l[:3] # Here 3 specifies the number of items to be deleted.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #delete #indexes
ADD COMMENT
Topic
Name
4+4 =