positive negetive indexing in python code example
Example 1: negative indexing in python
thislist = ["apple", "banana", "cherry", "orange", "kiwi", "melon", "mango"]
print(thislist[-2:])
# ["melon","mango"]
Example 2: negative indexing in python example
negative indexing on python example