I can’t tell if there are any formatting problems, but it looks like you are missing the () in your commandSoldiers function.
for soldier in hero.findByType ‘soldier’: # hero.findByType('soldier'):
I can’t tell if there are any formatting problems, but it looks like you are missing the () in your commandSoldiers function.
for soldier in hero.findByType ‘soldier’: # hero.findByType('soldier'):