+ 3

None value

In Python, when you get the return value as "None", what does it mean, and how does it work?

4th Jun 2018, 11:38 PM
arbaaz
2 Antworten
+ 2
Thank you.
6th Jun 2018, 10:15 PM
arbaaz
0
None is typically used to identify that what is being returned has no given value, therefore returning nothing. Whenever a variable has no value or a function is unable to return anything, then none is usually returned instead.
5th Jun 2018, 12:36 AM
Faisal
Faisal - avatar