I believe the 3rd print function should have been “it’s a tie!” as the supplied function input (-5, -10, -10) satify the condition if any of the inputs are equal. -10 == -10!
How come the answer is evaluated to -5???
Here is my function definition:
def max_num(num1, num2, num3):
if (num1 > num2) and (num1 > num3):
elif (num2 > num1) and (num2 > num3):
elif (num3 > num1) and (num3 > num2):
return “It’s a tie!”