Python Boolean
Last Update : 10 Jul, 2023In this tutorial, you will learn about Python boolean data type.
The boolean data type can be identified as a fundamental data type that represents the truth value of an expression in a computer program.
True and False are the two possible values that are available in the boolean data type.
We can use booleans in programming to control the flow of code, perform logical operations and make decisions.
How to create boolean variables?
An example of creating a Python boolean variable is as follows.
is_active = True
is_correct = False