Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python last element of list

>>> list[-1:] # returns indexed value
    [3]
>>> list[-1]  # returns value
    3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #element #list
ADD COMMENT
Topic
Name
4+7 =