x,y = -1, 10
print(x == y)
print(x > y)
print(x < y)
print(x != y)False
False
True
True
Link to the Google Colaboratory notebook: 6-Booleans
A boolean is either True or False.
When you compare two values, it returns a boolean:
It is used a the basic for conditions.
The bool variable allows you to evaluate any variable.
Most of the times, the output will be True.
True True True