Help mountain mercenary [SOLVED]

My code:

while True:
    # Move to the nearest coin.
    # Use move instead of moveXY so you can command constantly.
    item = hero.findNearestItem()
    # If you have funds for a soldier, summon one.
    if > hero.costOf("soldier"):
    enemy = hero.findNearestEnemy()
    if enemy:
        soldiers = hero.findFriends()
        soldierIndex = 0
        soldier = soldiers[soldierIndex]
        # Loop over all your soldiers and order them to attack.
        while soldierIndex < len(soldiers):
            hero.command(soldier, "attack", enemy)
            soldierIndex += 1
        # Use the 'attack' command to make your soldiers attack.
        #hero.command(soldier, "attack", enemy)

werid that dode works for me

i meant code so i dont know but maybe @abc does

@Chaboi_3000 Plz help or someone else

@Falcons118 please come here

uhhhh dude you know I dont do python :expressionless:
I am on JS

@Dragonlouis do you know and JS

NO(tried in dungeon gave up)

okay link to level i will meed to see your armour as well i lost the link

I have deflector tarnished bronze breastplate using tharin twilight glasses boss star one(DUH) emperers gloves 1146 hp oh I forgot thornprick gilt wristwatch saphire sense stone basic flag

can you take a screen shot please

how? done it on chromebook on windows though

But I already told you.

okay but i need the link

take screen shot on chromebook is ctrl + shift + (the thing to the left of lower brighness)

I know I’m using windows

windows is ctrl + windows key + shift + s

ok back to the topic,

you should use for loops, like for soldier in soldiers

i am sending you a pm @Dragonlouis

uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh this is level 5 in mountain