Skip to content

Commit

Permalink
'Solution'
Browse files Browse the repository at this point in the history
  • Loading branch information
Oxbay committed Oct 10, 2023
1 parent 390bd5e commit 0c2dfdf
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 self.hidden:
self.hidden = False
else:
self.hidden = True
self.hidden = not self.hidden


class Carnivore(Animal):
Expand Down

0 comments on commit 0c2dfdf

Please sign in to comment.