# Null

> A special value meaning no value at all. It is not zero or empty text.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** None, nil, Null Value

## Think of it like

Think of it like an empty seat with a name card. The seat is there, but nobody is in it.

## Definition

Null is a special value that means nothing is here. A variable can exist and still hold no real value yet. Python calls it None, Go and Ruby call it nil, and many others call it null. It is different from zero or an empty string, which are real values. Using a null as if it held something is one of the commonest crashes in code.

## Example

A form leaves middle_name as None when Jack has no middle name. The page then skips that line.

## Example code

```python
>>> middle_name = None
>>> middle_name is None
True
```

The name exists, but there is nothing in it yet.

## Why it matters

Real data is full of gaps. Null lets a program say "unknown" instead of making up a value.

## Common mistake

Forgetting to check for null before using a value. The program then crashes on the one empty case.

## Three principles

- **Means nothing.** Not zero, not empty text, just no value.
- **Many names.** null, None and nil are the same idea.
- **Check first.** Test for it before you use the value.

## Related terms

- [Data Type](https://learn.benibix.com/term/development/data-type)
- [Variable](https://learn.benibix.com/term/development/variable)
- [Runtime Error](https://learn.benibix.com/term/development/runtime-error)
- [Boolean](https://learn.benibix.com/term/development/boolean)

## Taught in

- [Data Types in Python](https://learn.benibix.com/learn/development-concepts/data-types-in-python): Programming Basics, 6/18

---

Source: https://learn.benibix.com/term/development/null
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
