From 447ab487616c34bac65641b9367e1e3ca644d6a1 Mon Sep 17 00:00:00 2001 From: Katherine-Greg Date: Sun, 15 Oct 2023 03:18:21 +0300 Subject: [PATCH] Solution --- app/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/main.py b/app/main.py index d3ede356..29f10d77 100644 --- a/app/main.py +++ b/app/main.py @@ -26,8 +26,8 @@ def hide(self) -> None: class Carnivore(Animal): @staticmethod - def bite(animal: Herbivore) -> None: - if not animal.hidden and isinstance(animal, Herbivore): - animal.health -= 50 - if animal.health <= 0: - Animal.alive.remove(animal) + def bite(creature: Animal) -> None: + if not creature.hidden and isinstance(creature, Herbivore): + creature.health -= 50 + if creature.health <= 0: + Animal.alive.remove(creature)