Keywords and Expressions

False — Boolean constant

False is the built-in Boolean value representing logical false. It is a singleton of type bool and cannot be reassigned. Because bool is a subclass of int, False compares equal to 0, although their exact types differ. Use Boolean values for predicates and flags; do not confuse strings containing Boolean words with Boolean objects. Identity checks are usually unnecessary for ordinary truth testing.

Formal Syntax & Structure

python syntaxpython
False

Return Value

bool

The singleton Boolean value False.

Working Example

Example Snippetpython
print(False)print(type(False).__name__)print(int(False))print(not False)
Python Reference