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

19th Mar 2017, 4:28 AM
fariha
2 Answers
+ 2
code pls
19th Mar 2017, 4:59 AM
Meharban Singh
Meharban Singh - avatar
0
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)
14th Sep 2017, 8:51 AM
vaishnav km
vaishnav km - avatar