Skip to main content

3. Built-in Constants

A small number of constants live in the built-in namespace. They are:

False

The false value of the bool type. Assignments toFalseare illegal and raise a SyntaxError.

True

The true value of the bool type. Assignments toTrueare illegal and raise a SyntaxError.

None

The sole value of the typeNoneType.Noneis frequently used to represent the absence of a value, as when default arguments are not passed to a function. Assignments toNoneare illegal and raise a SyntaxError.

Not Implemented

Ellipsis (...)

debug

Constants added with site module-

quit(code=None)

exit(code=None)

credits

license