Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get every item but the last item of python list

x = [1, 2, 3, 4]

#same array, but the last item.
notLast = x[0:-1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #item #item #python #list
ADD COMMENT
Topic
Name
8+4 =