Page 91 - Digicode_AI_class_7
P. 91
Example
Operator Name Description Output
(x=8 and y=6)
> Greater It checks if the value of left operand is greater x > y TRUE
than than the value of right operand. If yes, then
the condition becomes true.
< Less than It checks if the value of left operand is less x < y FALSE
than the value of right operand. If yes, then
the condition becomes true.
>= Greater It checks if the value of left operand is greater x >= y TRUE
than or than or equal to the value of right operand. If
equal to yes, then the condition becomes true.
<= Less than It checks if the value of left operand is less x <= y FALSE
or equal to than or equal to the value of right operand. If
yes, then the condition becomes true.
Program: To show all the relational operators’ functions.
On running the above program, you will get the following output:
More on Python 89

