words = ['home', 'eat', 'run', 'walk', 'jump', 'sleep', 'hide', 'come'] element = 'hide' words.reverse() index = words.index(element) print(len(words) - index - 1)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment