Continuing the discussion from Advanced Python Code Challenges: Control Flow, Task 5 "Max Number:
I hope this thread is still active, since I also have a question about the elegance of this code.
To test if number 1 is greater than the other two numbers, why can’t we write it like:
if num1 > (num2 and num3): return num1
if num1 > num2 and num1 > num3: return num1
I know for sure my code is wrong (since I didn’t get the desired output), I however don’t see why. Can somebody enlighten me? Thank you in advance