Boolean
noun · Computer science
Definition
A data type with two possible values, true or false.
Explanation
Booleans are used in conditions and logical operations.
Example
is_student = True.
Common confusion
Booleans are not strings; the word true in quotation marks is a string.
Related terms
- Data typeThe kind of value a variable holds, such as integer, string or Boolean.
- IterationThe repetition of a set of instructions.
Study guides that use this term
Entry status: written by the editorial team and awaiting independent review. Spot an error? Use our corrections page.
← All vocabulary