Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove last element from list python

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