Skip to content

Commit

Permalink
updated rerp func
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonsky1 authored Oct 10, 2023
1 parent c2c2957 commit 927260a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ def __init__(self, name: str, health: int = 100) -> None:
Animal.alive.append(self)

def __repr__(self) -> str:
return f"{{Name: {self.name}, " \
f"Health: {self.health}, " \
f"Hidden: {self.hidden}}}"
return (
f"{{Name: {self.name}, "
f"Health: {self.health}, "
f"Hidden: {self.hidden}}}"
)


class Herbivore(Animal):
Expand Down

0 comments on commit 927260a

Please sign in to comment.