0

Question: Why this code is not allowed? Thank for help.

https://code.sololearn.com/cS3W2egl3CEN/?ref=app

4th Jan 2021, 6:32 PM
TeaserCode
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)
4th Jan 2021, 7:08 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Thank you very much.
4th Jan 2021, 8:16 PM
TeaserCode