# Level Help: Brittle Morale (Python)

**URL:** <https://discourse.codecombat.com/t/level-help-brittle-morale-python/20878>\
**Category:** Level Help\
**Created:** [April 8, 2020, 4:53pm UTC](https://discourse.codecombat.com/t/level-help-brittle-morale-python/20878 "2020-04-08T16:53:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheBredMeister](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebredmeister/32/11878_2.png) [@TheBredMeister](https://discourse.codecombat.com/u/TheBredMeister)\
**Post date:** [April 8, 2020, 4:53pm UTC](https://discourse.codecombat.com/t/level-help-brittle-morale-python/20878/1 "2020-04-08T16:53:50Z")

</div>

Hello, I’ve been stuck on this level for a while, and I was trying to find out what to do. It keeps saying that `enemy.health` is not a variable after it accepted it as on before.

Someone tell me what’s going on and how I can fix it.

Here’s the code:

```python
# You have one arrow. Make it count!

# This should return the enemy with the most health.
def findStrongestEnemy(enemies):
    strongest = None
    strongestHealth = 0
    enemyIndex = 0
    # While enemyIndex is less than the length of enemies:
    while enemyIndex < len(enemies):
        # Set an enemy variable to enemies[enemyIndex]
        enemy=enemies[enemyIndex]
        # If enemy.health is greater than strongestHealth
        if enemy.health > strongestHealth:
            # Set `strongest` to enemy
            # Set strongestHealth to enemy.health
            enemy= strongest
            strongestHealth = enemy.health
        # Increment enemyIndex
        enemyIndex +=1
    return strongest

enemies = hero.findEnemies()
leader = findStrongestEnemy(enemies)
if leader:
    hero.say(leader)

```

---

<div class="post-metadata">

**Author:** ![dedreous](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dedreous/32/13849_2.png) [@dedreous](https://discourse.codecombat.com/u/dedreous)\
**Post date:** [April 8, 2020, 5:22pm UTC](https://discourse.codecombat.com/t/level-help-brittle-morale-python/20878/2 "2020-04-08T17:22:46Z")

</div>

Howdy and welcome to the forum!

Line 12, take a closer look at the comment, then take a good look at line 14…

---

<div class="post-metadata">

**Author:** ![TheBredMeister](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebredmeister/32/11878_2.png) [@TheBredMeister](https://discourse.codecombat.com/u/TheBredMeister)\
**Post date:** [April 8, 2020, 5:27pm UTC](https://discourse.codecombat.com/t/level-help-brittle-morale-python/20878/3 "2020-04-08T17:27:18Z")

</div>

Thanks, I’m welcome to be here.

I appreciate the nudge @dedreous!

may the ogres crumble beneath your mighty blade. 😃
