Skip to content

Commit

Permalink
Implement py-herbivores-and-carnivores
Browse files Browse the repository at this point in the history
  • Loading branch information
SevKrok committed Oct 9, 2023
1 parent c623d3f commit 6f0b9a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
class Animal:
alive = []

def __init__(self,
name: str,
health: int = 100,
hidden: bool = False
) -> None:
def __init__(
self,
name: str,
health: int = 100,
hidden: bool = False
) -> None:
self.name = name
self.health = health
self.hidden = hidden
Expand Down

0 comments on commit 6f0b9a1

Please sign in to comment.