# None Value

In Python, there is one value None. That means, this variable does not contain anything. Just nothing...

a = None
1

Therefore, we can assign something later.

For example

a = None
print(a)
print(a is None)
if a is None:
    a = 10
print(a)
1
2
3
4
5
6
output

OUTPUT

None True 10

DANGER

For checking None, please use those keywords.

  • is
  • is not

# Exercise Book 03.None