- 2
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)
5 Antworten
+ 2
then for which input it will produce wrong output?? can you give an example?
+ 1
Hola!!! it worked!! Thank you so much!!