Boolean Type

In [1]:
# True and False are data of type bool in python
# Print the type of True and False
In [1]:
print(type(True))
<class 'bool'>
In [2]:
print(type(False))
<class 'bool'>
In [3]:
print(type(5 > 2))
<class 'bool'>
In [4]:
print(type(5 == 2))
<class 'bool'>