Light Mode
Dark Mode
One mistakes & One question

Mistake

If I build local, then:

assert chuck.is_alive == True

passed this test, but when I run on the site I have:

AssertionError: <module>, 35

(it is row with "assert chuck.is_alive == True")

Question

Why this asserts is will False (it is spelling in test)?

assert fight(carl, mark) == False

assert carl.is_alive == False

Why is carl dead?

if:

carl = Knight()

with attack = 7

mark = Warrior()

with attack = 5

Created: Oct. 27, 2018, 3:41 p.m.
Updated: Oct. 27, 2018, 6:02 p.m.
2
5
User avatar
_reiz