You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
448 B
Python
13 lines
448 B
Python
2 years ago
|
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))
|
||
|
|
||
|
|