DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get last element of array
arr = ["cat", "dog", "rabbit"] last_element = arr[-1]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#element
#array
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit