Brittle Morale help

here is my code what is wrong???

def findStrongestEnemy(enemies):
    strongest = None
    strongestHealth = 0
    enemyIndex = 0
    while enemyIndex < len(enemies):
        enemy = enemies[enemyIndex]
        if > strongestHealth:
            strongestHealth = enemy.Health
        enemyIndex += 1
    return strongest
    enemies = hero.findEnemies()
    leader = findStrongestEnemy(enemies)
    if leader:

I also wanted to know what does code combat meant by highlighting the code?

You defined a function:

def findStrongestEnemy(enemies):
    strongest = None # function start
# some code here
        hero.say(leader) # function end 

Where do you call it?

you placed the code return strongest while strongest was still None. there is no strongest. you also put this line in the def findStrongestEnemy(enemies):


the strongest is one of the enemies. also call this function outside def findStrongestEnemy(enemies):

so do I have to put the strongest = enemy?

yes. (wat not 20 yet)

what do you mean wat not 20 yet

You need 20 characters to post.