Page 24 - Modular v1.1 Pyhton
P. 24

!=       Not equal It checks if the values of two operands             x != y       TRUE
                                            are  equal or not. If the values are  not
                                            equal, then the condition becomes true.

                       >         Greater    It checks if the value of left operand is          x > y       TRUE
                                   than     greater than the value of right operand.
                                            If yes, then the condition becomes true.
                       <        Less than   It checks if the value of left operand is          x < y       FALSE

                                            less than the  value  of  right  operand. If
                                            yes, then the condition becomes true.
                       >=        Greater    It checks if the value of left operand is         x >= y       TRUE
                                 than or    greater  than or  equal  to the  value of

                                 equal to   right operand. If yes, then the condition
                                            becomes true.
                       <=       Less than  It checks if the value of left operand is          x <= y       FALSE

                               or equal to less than or equal to the value of right
                                            operand.  If yes, then the condition
                                            becomes true.


                  Program 4: To show all the relational operators’ functions.













































                   22     Touchpad MODULAR (Version 1.0)
   19   20   21   22   23   24   25   26   27   28   29