Mad Maxer strikes back - type error

You have

    while enemies: #THIS IS THE LINE THAT'S NOT WORKING
        # someAction        
        enemyIndex += 1

vs

    while enemyIndex < len(enemies):
        # someAction        
        enemyIndex += 1

How do you exit from the first loop? The message is confusing but shows the the error.

The message must be something like IndexError.
http://www.pythontutor.com