The prompt we were initially given says to create a function that receives a number as an argument and returns the log of that number rounded to 4 decimals places. I need the function to take the min_num and max_num as the arguments
This is my code:
def min_num():
while True:
i = int(input("What's your minimum value?"))
if i > 0:
return i
print("ERROR. Minimum should be greater than 0")
def max_num(min_mum):
while True:
i = int(input("What's your maximum value?"))
if i > min_num:
return i
print(f"ERROR. Maximum value must be greater {min})")
min_value = min_num()
max_value = max_num(min_value)