The relational operators return Boolean values, which are true or false, True or False, 0 or 1.
Yes 0 and 1 can also be Boolean values.
What is Boolean data type
Boolean data type in programming is a type that only have two output true or false.
Boolearn operators are the output of relational operators.
Let’s see a Python program that returns boolean values.
a = 4
b = 8
c = b > a
print(c) # return true
d = b == a
print(d) # return false