Skip to content

Commit

Permalink
Solution with mentors advice2
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii-Silenko committed Oct 11, 2023
1 parent 5125c52 commit 1a0eca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ def bite(herbivore: Herbivore) -> None:
if isinstance(herbivore, Herbivore) and not herbivore.hidden:
herbivore.health -= 50
if herbivore.health <= 0:
super(Herbivore, herbivore).alive.remove(herbivore)
herbivore.alive.remove(herbivore)

0 comments on commit 1a0eca7

Please sign in to comment.