From 927260ae7fdc9ac13f0c97092f83be85b8ce8f53 Mon Sep 17 00:00:00 2001 From: Vladyslav Pidborskyi <130407291+Wonsky1@users.noreply.github.com> Date: Tue, 10 Oct 2023 21:07:56 +0300 Subject: [PATCH] updated rerp func --- app/main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 59998c3c..0ccffb58 100644 --- a/app/main.py +++ b/app/main.py @@ -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):