Home >>Python Keywords >Python None Keyword

Python None Keyword

Python None Keyword

Python none keyword is used to define a null value to the variable, or no value at all. None is a case-sensitive and has its own datatype. None is not the same as 0.

Here is an example of Python None Keyword:

z = None
print(z)

Output:
None
Example 2:

z = None
if z:
  print(" None is True")
else:
  print("None is not True...")

Output:
None is not True...