Find the index of the last occurrence of a value in a list, or -1 if absent.
Constraints
Example
```python >>> last_index([1, 2, 3, 2, 1], 2) 3 >>> last_index([1, 2, 3], 9) -1 >>> last_index([], 5) -1 >>> last_index(["a", "b", "a"], "a") 2 ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints