Skip to content

Commit

Permalink
Removed line breakers
Browse files Browse the repository at this point in the history
  • Loading branch information
raychw committed Oct 8, 2023
1 parent 06f8eb1 commit 0d81faf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ def __init__(
health: int = 100,
hidden: bool = False
) -> None:

self.health = health
self.name = name
self.hidden = hidden
self.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 0d81faf

Please sign in to comment.