None Value

None is the only value of the NoneType data type. Similar to null, nil or undefined from other programming languages.

Just like True and False boolean values None must be capitalized.

>>> spam = print('Hello!')
Hello!
>>> None == spam
True
>>>

All functions in Python need to evaluate to a return value. Functions that don’t define a return value return None by default. If you use a return statement without a value None is returned.