How to find the last occurrence of an item in a Python list,len(li) - 1 - li[::-1].index('a')