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

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