CKTIS / Python
Keyword False
False is one of the two singleton bool objects and its spelling is case-sensitive.
Version: Python 3.14; repository image, production runtime not attested
Syntax
FalseFalse is one of the two singleton bool objects and its spelling is case-sensitive.
It compares equal to numeric zero because bool is a subclass of int, but False and 0 are distinct objects of different types. Other false-like values such as an empty list need not compare equal to False.
A capitalized keyword cannot be reassigned.
Examples
zero = 0
print(type(False).__name__, False == zero, False is zero)
print(bool([]), [] == False, {False: "flag", zero: "number"})
Result
bool True False
False False {False: 'number'}A capitalized keyword cannot be reassigned.