From 38e4aea40c9df79a670fee96b276db06acf3b09d Mon Sep 17 00:00:00 2001 From: Jothikahaldurai <113230285+Jothikahaldurai@users.noreply.github.com> Date: Tue, 16 Jul 2024 21:32:43 +0530 Subject: [PATCH] Update sports.py I have updated new function "check status"-To check the total stamina. --- sports.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sports.py b/sports.py index c099cc3..19c2d26 100644 --- a/sports.py +++ b/sports.py @@ -58,3 +58,7 @@ def training_or_play(self): else: print(f"{self.myplayer} has lost the game.") exit() + + def check_status(self): + print(f"Current Stamina: {self.stamina}") + print(f"Current Speed: {self.speed}")