I'm in my intro to programming class and for some reason am a bit stumped as to how to proceed from here. Basically the prompt is to compare three numbers the user inputs and see if the first number is between the last two.
def fun1(a,b,read,):
if a < read and read > b:
return print("Yes")
elif b < read and read > a:
return print("Yes")
else:
return print("No")
def main():
read = input("mid: ")
a = input("num1 ")
b = input("num2 ")
fun1(read,a,b,)
print("result:",fun1)
So as you see I can't figure out how to get the comparing function down in the first function. Any help is much appreciated!