Data types in Python
2. Types of Data types
2.3. Boolean Data type
It is also a built-in data type that can hold a value either True or False. Boolean values are used to make logical decisions and control flow of a program. Boolean values are also used to perform conditional operations.
Example:
a=True
print("The type of a", type(a))
Output:
The type of a <class ‘bool’>