boolean

Boolean values are the two constant objects False and True. They are used to represent truth values (other values can also be considered false or true).

In numeric contexts (for example, when used as the argument to an arithmetic operator), they behave like the integers 0 and 1, respectively.


» Glossary of terms