Python supports negative indices to access elements from the end of a list. Index -1 refers to the last element, -2 to the second-to-last, and so on.
Given letters = ["a", "b", "c", "d", "e"], letters[-1] returns "e", letters[-2] returns "d", and letters[-5] returns "a" (the first element).
This is useful when you need the last item without knowing the list's length: recent_score = scores[-1] always gets the most recent entry. Negative indexing also works with assignment and slicing for working with list ends.