Equivelant to rindex for lists in Python,len(a) - a[-1::-1].index('hello') - 1