DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to find the last item of a list
list1 = ['a','b','c'] print(list1[-1])
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#find
#item
#list
ADD COMMENT
Topic
COMMENT
Name
8+7 =
Submit