None Null constant

Last updated: 2026-09-22

None Null constant

None is the sole instance of NoneType; commonly used to denote 'no value' (distinct from False).

CategoryKeywords & Statements
KindKeyword / Statement
Python Versionall

📝 Syntax

None

▶ Example

Edit the code, press Run, and see the result in the output panel:

Output:

None
True
False
ℹ️ Info Check None with `is None`, not `==`.
More case studies coming soon — check back later.

❓ FAQ

QShould I check for `None` with `==` or `is`?
AUse `is None` or `is not None`. The `==` operator can be overloaded by a custom `__eq__` and give wrong results, whereas `is` compares object identity and is always correct for the singleton `None`.
QWhat is the difference between `None` and `False`?
A`None` means «no value» and is the only instance of `NoneType`. `False` is a boolean falsy value. `None == False` evaluates to `False` — they are completely different objects.
QWhat does a function return when it has no `return`?
AIt returns `None`. That is why `if f() is None` is a common way to test whether a function returned an explicit value; note that the test should use `is`, not `==`.
Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏