None
None
is a special constant in Python. It is a null value. None
is not the same as False
. None
is not 0. None
is not an empty string. Comparing None
to anything other than None
will always return False
.
None
is the only null value. It has its own datatype (NoneType
). You can assign None to any variable, but you can not create other NoneType
objects. All variables whose value is None
are equal to each other.
Get hands-on with 1400+ tech skills courses.