Write the definition of a function max that has three int parameters and returns the largest.

Write the definition of a function max that has three int parameters and returns the largest.



Answer:


def max(x,y,z):
if (x>z and x>y):
return (x)
elif (y>x and y>z):
return y
else:
return z