Boolean expression and Comparison Operators
Link will be apear in 15 seconds.
Well done! you have successfully gained access to Decrypted Link.
Boolean expression:
A Boolean expression is an
expression that is either true or false.
•
One way to write a Boolean expression
is to use the operator ==, which compares two values and produces a Boolean
value:
>>> 5 == 5
True
>>> 5 == 6
False
True and False are special values that are built into
Python.
Comparison
Operators:
•
x != y # x is not equal to y
•
x > y
# x is greater than y
•
x < y # x is less than y
•
x >= y # x is greater than or equal to
y
•
x <= y # x is less than or equal to y
NOTE: “= is an
assignment operator and == is a comparison operator”. Also, there is no such
thing as =< or =>.