DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
tuple negative indexing in python
thistuple = ("apple", "banana", "cherry") print(thistuple[-1]) #cherry print(thistuple[-2]) #banana
PREVIOUS
NEXT
Tagged:
#tuple
#negative
#indexing
#python
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit