Find last matching index
Finds the index of the last element in the given list that satisfies the provided testing function.
- Use a list comprehension,
enumerate()
andnext()
to return the index of the last element inlst
for whichfn
returnsTrue
.