From 98aeaaaefb533505d064d2a9fa40c49a15f0950c Mon Sep 17 00:00:00 2001 From: sthrisha18 <113710121+sthrisha18@users.noreply.github.com> Date: Wed, 17 Jul 2024 00:36:41 +0530 Subject: [PATCH] Update main.py --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 6261695..3efc281 100644 --- a/main.py +++ b/main.py @@ -27,6 +27,10 @@ def main(): meal_type = input("What type of meal? (light/heavy) ") my_sports.nutrition(meal_type) + user_input = input("Do you want to rest to recover stamina? (yes/no) ") # New feature: Rest + if user_input.strip().lower() == 'yes': + my_sports.rest() + my_sports.event_summary() if __name__ == "__main__":