0

Guys,please give me the reason for showing 'None ' in this python code in simple words

showing 'None' in code https://code.sololearn.com/cuLC4JThVu8n/?ref=app

29th Jun 2020, 9:03 AM
Abhinraj
4 Respostas
+ 4
It says None because you are not returning with the function. You are also printing two times. The print in the function will work but the other one will print None
29th Jun 2020, 9:06 AM
Alex
Alex - avatar
0
thanks guys
30th Jun 2020, 5:50 AM
Abhinraj
0
its because you didnt return any balue with the function.
30th Jun 2020, 11:01 AM
Pr0C0d3r
Pr0C0d3r - avatar