DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+4 =
Submit