Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove last item from list python

even_numbers = [2,4,6,8,10,12,15]	# 15 is an odd number
# if you wanna remove 15 from the list 
even_numbers.pop()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #item #list #python
ADD COMMENT
Topic
Name
2+2 =