Negative indexing means beginning from the end, -1
refers to the last item, -2
refers to the second last item etc.
Print the last item of the tuple:
thistuple = ("apple", "banana", "cherry")
print(thistuple[-1])
You can specify a range of indexes by specifying where to start and where to end the range.
When specifying a range, the return value will be a new tuple with the specified items.
Return the third, fourth, and fifth item:
thistuple = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango")
print(thistuple[2:5])