Help Sarven Shepherd Python Error "Hard execution limit of 3000000 exceeded"


#1
while True:
     enemies = hero.findEnemies()
     enemyIndex = 0


#2

ignore this post hit wrong button


#3
enemyIndex = 0
while True:
    enemies = hero.findEnemies()
    enemyIndex += 1