Help plz hunters and prey

def pickUpCoin():
# Collect coins.

pass

def summonTroops():
# Summon soldiers if you have the gold.

pass

This function has an argument named soldier.

Arguments are like variables.

The value of an argument is determined when the function is called.

def commandSoldier(soldier):
# Soldiers should attack enemies.

pass

Write a commandArcher function to tell your archers what to do!

It should take one argument that will represent the archer passed to the function when it’s called.

Archers should only attack enemies who are closer than 25 meters, otherwise, stay still.

while True:
pickUpCoin()
summonTroops()
friends = hero.findFriends()
for friend in friends:
if friend.type == “soldier”:
# This friend will be assigned to the variable soldier in commandSoldier
commandSoldier(friend)
elif friend.type == “archer”:
# Be sure to command your archers.

        passd
type or paste code here