0
Question: Why this code is not allowed? Thank for help.
2 Respuestas
+ 2
1. The variable min is never set before it is used in the for loop.
2. You're attempting to set the variable max in the bigger function, but you never passed max to the function and/or returned its value.
3. The bigger function returns a bool type and is being used as int type for comparison. While this will work due to implicit conversion it may be better to change its use. (If it returns True or False there isn't a need for == 0 or != 0)
+ 1
Thank you very much.