What am i doing wrong for "yeti eater" please help me


#1

I can not find where I made a mistake because I have not been able to review it many times.
please help me to find the cause of my mistake and my mistake

# Yetis surround us and we need to defeat them.
# Luckily the wizard had time to cast the sleep spell.
# Your hero can devour the yetis' vital powers when they are defeated.
# Defeat them in the order from weakest to the strongest.

# The wizard sorted enemies, but in the order from the strongest to the weakest.
wizard = hero.findNearest(hero.findFriends())
yetis = wizard.findEnemies()

# You need iterate the yetis list in the reverse order with a 'for-loop'.
# The start value should be 'len(yetis) - 1'.
# Iterate while the index greater than -1.
# Use the negative step -1.
while (len(yetis) - 1):
    for i in reversed(range(len(yetis))):
        while yetis[i].health > 0:
            hero.attack(yetis[i])
        i -= 1
    # Attack each enemy while its health greater than 0.


# Look at the guide to get hints.

#2
while (len(yetis) - 1):   # this line is your problem.
                          # it's redundant -- you already have a for..in loop
                          # that takes care of enemies
                          
    for i in reversed(range(len(yetis))):
        while yetis[i].health > 0:
            hero.attack(yetis[i])
        
        i -= 1  # this actually doesn't do anything, since you're using a for..in loop