Skip to content

Commit

Permalink
Solution2
Browse files Browse the repository at this point in the history
  • Loading branch information
gritsbilous committed Oct 15, 2023
1 parent da1c8bf commit 6d90266
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 @@ -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):
Expand Down

0 comments on commit 6d90266

Please sign in to comment.