Booleans

Understand Python's boolean data type, which uses True and False for performing logical operations and comparisons.

Boolean values

The boolean (also known as bool) data type allows us to choose between two values: True and False. It is commonly used for conditional testing and controlling the flow of a program.

Get hands-on with 1400+ tech skills courses.