Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove the last item in a list python

myList = [8, 2, 19, 6, 14]
myList.remove(myList[-1])
print(myList)
 
PREVIOUS NEXT
Tagged: #remove #item #list #python
ADD COMMENT
Topic
Name
3+3 =