diff --git a/app/main.py b/app/main.py index 0fbae8bc..87710713 100644 --- a/app/main.py +++ b/app/main.py @@ -22,10 +22,7 @@ def __repr__(self) -> str: class Herbivore(Animal): def hide(self) -> None: - if not self.hidden: - self.hidden = True - else: - self.hidden = False + self.hidden = not self.hidden class Carnivore(Animal):