From 4cd748966b60bed5cf87d0ebab59ac41702188aa Mon Sep 17 00:00:00 2001 From: spencer cooper Date: Sat, 29 Apr 2023 12:56:04 +0000 Subject: [PATCH] Upload files to '' --- Programming.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Programming.py diff --git a/Programming.py b/Programming.py new file mode 100644 index 0000000..c5baf74 --- /dev/null +++ b/Programming.py @@ -0,0 +1,12 @@ +value_of_day = 24 +def user_request(take_and_transfer): + if take_and_transfer > 0: + #value_for_day = 24 + value_for_time = "hours" + return f"{take_and_transfer} day is equal to {take_and_transfer * value_for_day} hours" + else: + return (take_and_transfer, "is not allow in this program") +enter_a_value = int(input("Enter a valid number to know how many minutes in a give day\n")) +print(user_request(enter_a_value)) + +