Boolean Data Type in Python

The boolean data return type is either (0/1) True / False.

In Python, boolean variables are defined by the True and False keywords.

>>> a = True 
>>> type(a) <class 'bool'> 
>>> b = False 
>>> type(b) <class 'bool'> 

The output indicates the variable is a boolean data type.

More examples,

print(10 > 9)
print(10 == 9)
print(10 < 9)
a = 200
b = 33
if b > a:
  print("b is greater than a")
else:
  print("b is not greater than a")