while True:
friend = hero.findNearestFriend()
if friend:
hero.say("To battle, " + friend.id + “!”)
# Now find the nearest enemy and tell them to go away.
hero.findNearestEnemy()
hero.say(“go away”)
enemy = hero.findNearestEnemy()
if enemy:
can someone tell me what to put after the if enemy: part plz im stuck
# Peasants and peons are gathering in the forest.
# Command the peasants to battle and the peons to go away!
while True:
friend = hero.findNearestFriend()
if friend:
hero.say("To battle, " + friend.id + "!")
# Now find the nearest enemy and tell them to go away.
hero.findNearestEnemy()
hero.say("go away")
enemy = hero.findNearestEnemy()
if enemy: