Here is an function to return the maximum value among three positive integers. There is an error in this function. Provide an in | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Here is an function to return the maximum value among three positive integers. There is an error in this function. Provide an in

def max3bad(x,y,z): maximum = 0 if x >= y: if x >= z: maximum = x elif y >= z: maximum = y else: maximum = z return(maximum)

25th Sep 2019, 2:05 PM
Anirudh Putta
Anirudh Putta - avatar
0 Answers