DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+3 =
Submit