I don't understand why I can't pass this mission. Check says:
unit1 = Defender()
unit2 = Rookie()
fight(unit1, unit2)
unit_1.health
Your result:
0
Right result:
60
In mission there is not info about Rookie type, but I create that type with health and hit = 0. After fight I see thah unit_1.health is 60, but check says is 0. How can I pass mission?
From: https://py.checkio.org/mission/the-defenders/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Created at: 2020/04/11 07:52; Updated at: 2020/04/11 09:26