+ 1

Can anyone explain what is the output of this code? Why it shows 'None'?

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

25th Jun 2017, 7:18 AM
Girish Tulabandu
Girish Tulabandu - avatar
3 Respuestas
+ 11
@Alejandro has already explained, so this is how you should call the functions: max(7) max(8)
25th Jun 2017, 8:41 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 3
because you are trying to assign a function as value, and your function doesn't have a return statement
25th Jun 2017, 7:29 AM
Alejandro Serrato
Alejandro Serrato - avatar
+ 2
thanx @Alejandro @shamima , now i understood how to use return and print statements
25th Jun 2017, 8:57 AM
Girish Tulabandu
Girish Tulabandu - avatar