Python Comparison
operators are used to comparing the value of the two operands and returns
boolean true or false accordingly. The comparison operators are described in
the following table.
Operator
|
Description
|
==
|
If the value of two operands is
equal, then the condition becomes true.
|
!=
|
If the value of two operands is not
equal then the condition becomes true.
|
<=
|
If the first operand is less than or
equal to the second operand, then the condition becomes true.
|
>=
|
If the first operand is greater than
or equal to the second operand, then the condition becomes true.
|
<>
|
If the value of two operands is not
equal, then the condition becomes true.
|
>
|
If the first operand is greater than
the second operand, then the condition becomes true.
|
<
|
If the first operand is less than the the second operand, then the condition becomes true.
|
0 comments:
Post a Comment