• failed test 4. Battle , test 1


I would like to give some feedback about ...

From: https://py.checkio.org/mission/army-battles/solve/

army1 = Army() army2 = Army() army1.addunits(Warrior, 20) army2.addunits(Warrior, 21) battle = Battle() battle.fight(army1, army2) Your result: false Right result: true

This is wrong: army2 has one more Warrior unit than army1 and will therefore win the battle. The right result is False

According to mission info: "...In this case, the battle() function should return True, if the first army won, or False, if the second one was stronger."