None type | SoloLearn: Learn to code for FREE!

0

None type

Is none a string or is it a unique type? In the lesson it is given to be an empty string But when I tried to add it to another string it gave an error

2/1/2020 6:14:15 AM

Sanjai Prabakarraj

3 Answers

New Answer

+4

perhaps this link could help you: https://www.educative.io/edpresso/what-is-the-none-keyword-in-python

+2

It's not a string or any other common data type. None (or NULL) is a special datatype referring to the fact that a variable is not set, or unset. Note that this is different from the number value 0 and also different from saving strings like "none" or "null", or even an empty string. it's also not the same as false, although comparing null/none to anything except null/none will always return false, so languages usually have other means of checking whether a value is set.

+1

Perfect๐Ÿ‘.... trying such things is what the lessons are for. Also use the comment part there for questions like this.