so I’m trying to solve this practice question about “Control Flow” the problem states:
" Write a function called
largest_number that takes three integer inputs,
y , and
z . Have this function, as its name implies, return the largest of the three numbers."
I write what i believe to be the code and when I run it I get what they are asking for, but i still get a message that "
largest_number did not return the largest value."
the code i write is :
def largest_number (x , y , z): if x > y > z : return x elif x < y > z: return y else: return z print (largest_number(7 , 8 , 9))
What could be done better??