Skip to content

Commit

Permalink
Solution1
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrMV committed Oct 14, 2023
1 parent 7fa5a5f commit 0fee469
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0fee469

Please sign in to comment.