Search
 
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
Name
7+7 =