Uses of None | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Uses of None

Can someone say the other uses of the None??

19th Jan 2018, 5:36 AM
Bony Joseph
Bony Joseph - avatar
1 Answer
+ 3
As a unique type of value it is good for variable initialization, for example. Also, in debugging, for similar reasons. Many methods, when returning None, means something went wrong.
19th Jan 2018, 9:47 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar