Please help me with library tactician python!

def findStrongestTarget():
mostHealth = 0
bestTarget = None
enemies = hero.findEnemies()
# Figure out which enemy has the most health, and set bestTarget to be that enemy.

# Only focus archers' fire if there is a big ogre.
if bestTarget and bestTarget.health > 15:
    return bestTarget
else:
    return None

Here, I am unsure what to do. Could you help me with the first #: # Figure out which enemy has the most health, and set bestTarget to be that enemy.

1 Like

For this function, go back to previous levels to examine your code where you have had to find a friend or enemy with the most health or a coin with the best value. This isn’t the first time you’ve written the code you need here. Just compare what you’ve written previously with what you need here and modify as necessary.

Also, use the search feature in this forum to look at others who have had difficulty with this level. Read the entire thread and dig for the information that you need. It’s here. I know it’s here because I recently replied to someone regarding this level.

make sure to practice, you will get your taction wand that you want.

1 Like

@MunkeyShynes
@KLLL
Thank you!