Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove first element from list

>>> l = [1, 2, 3, 4, 5]
>>> l
[1, 2, 3, 4, 5]
>>> l.pop(0)
1
>>> l
[2, 3, 4, 5]
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #python #remove #element #list
ADD COMMENT
Topic
Name
5+6 =