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