From 0fee46978f8abb1553cffb241c0e15ad2548b9bd Mon Sep 17 00:00:00 2001 From: Oleksandr Matviichuk Date: Sat, 14 Oct 2023 18:15:15 +0300 Subject: [PATCH] Solution1 --- app/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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