Run
x = 'apple is red. some apples are green.' search = 'yellow' index = x.rfind(search) print('Index :', index)
Output