Skip to content

Python Booleans

Syntax

Booleans in Python are a data type with two possible values: True or False. They are often used in conditions and comparisons.

# Assigning boolean values
is_true = True
is_false = False