diff --git a/app/main.py b/app/main.py index 07ad99af..3f7530a1 100644 --- a/app/main.py +++ b/app/main.py @@ -30,7 +30,4 @@ def bite(self, other: Animal) -> None: class Herbivore(Animal): def hide(self) -> None: - if not self.hidden: - self.hidden = True - else: - self.hidden = False + self.hidden = not self.hidden