<filename>projects/code_combat/8_Cloudrip_Mountain/388-Borrowed_Sword/borrowed_sword.py
def strongestEnemy(enemies):
    strongest = None
    health = 0
    for enemy in enemies:
        if enemy.health > health:
            health = enemy.health
            strongest = enemy
    return strongest


while True:
    friends = hero.findFriends()
    enemies = hero.findEnemies()
    target = strongestEnemy(enemies)
    if target:
        for friend in friends:
            hero.command(friend, "attack", target)

<filename>projects/code_combat/8_Cloudrip_Mountain/388-Borrowed_Sword/borrowed_sword.py
def strongestEnemy(enemies):
    strongest = None
    health = 0
    for enemy in enemies:
        if enemy.health > health:
            health = enemy.health
            strongest = enemy
    return strongest


while True:
    friends = hero.findFriends()
    enemies = hero.findEnemies()
    target = strongestEnemy(enemies)
    if target:
        for friend in friends:
            hero.command(friend, "attack", target)
