🧩Null
Also known as None, nil, Null Value
A special value meaning no value at all. It is not zero or empty text.
Think of it like
Think of it like an empty seat with a name card. The seat is there, but nobody is in it.
Example
A form leaves middle_name as None when Jack has no middle name. The page then skips that line.
Why it matters
Real data is full of gaps. Null lets a program say "unknown" instead of making up a value.
Definition
Example code
python
>>> middle_name = None
>>> middle_name is None
TrueCommon mistake
Key takeaways
- 1Means nothing. Not zero, not empty text, just no value.
- 2Many names. null, None and nil are the same idea.
- 3Check first. Test for it before you use the value.