- 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)

23rd Sep 2019, 1:18 PM
Kartik Kakad
Kartik Kakad - avatar
5 Antworten
+ 2
then for which input it will produce wrong output?? can you give an example?
23rd Sep 2019, 1:34 PM
Kartik Kakad
Kartik Kakad - avatar
+ 1
Hola!!! it worked!! Thank you so much!!
23rd Sep 2019, 3:05 PM
Kartik Kakad
Kartik Kakad - avatar