Sarven Sheperd help (Python)

Ok, right now your code has only identified one enemy
enemy = enemies[enemyIndex]
which is the correct approach. You are just missing a few other pieces That enemy is likely a “sand-yak”, so it won’t attack and does nothing. I’ll try to explain the concept with more direction, but won’t actually show you code yet.

To find other enemies, you need to increase your enemyIndex to step through the enemies array. You do this in a while loop with a condition. In this case, the condition should be while enemyIndex is less than the length (or count) of enemies. Add this bit of code just before your enemy variable.

One last piece, don’t forget to increase your index after you run through the code to attack.