Page 74 - ModularV1.1 _c8_flipbook
P. 74

Step 3   Click  on  File  →  Save As  to  open  the
                                                                            Save As dialog box.


                                                                    Step 4   Enter a file name and click on the Save
                                                                            button.
                                                                    Step 5   To run the program, click on Run → Run
                                                                            Module.

                                                                              OR

                                    Saving a file                           Press the F5 key from the keyboard.













                                      Running a module                Viewing the output

                  The output will be shown in the Python Shell window.
                  Relational Operators

                  These operators help to compare quantities and return Boolean value ‘True’ or ‘False’ as a result.

                   Operator                 Description                Syntax             Example            Output
                               This is used to check the equality                >>> ‘ABC’ == ‘ABC’            True
                       ==                                              (a == b)
                               between two values.                               >>> ‘ABC’ == ‘XYZ’            False

                               This operator  used  to  check  the               >>> ‘ABC’!=‘abc’              True
                       !=                                              (a != b)
                               non-equality between two values.                  >>> ‘ABC’!=‘ABC’              False

                               This operator checks if the first value           >>>(11 > 2)                   True
                       >                                                (a > b)
                               is greater than the second value.                 >>>(11 > 13)                  False

                               This operator is used to check if the
                                                                                 >>>(15 < 5)                   False
                       <       first value is less than the second      (a < b)
                                                                                 >>>(15 < 20)                  True
                               value.
                               This operator is used to check if the
                                                                                 >>>(22 > = 22)                True
                       >=      first value is greater than or equal to  (a >= b)
                                                                                 >>>(22 > = 19)                True
                               the second value.
                               This operator is used to check if the
                                                                        (a < =   >>>(27 < = 26)                False
                       <=      first value is less than or equal to the
                                                                          b)     >>>(30 < = 31)                True
                               second value.


                  72      Modular (Ver. 1.1)-VIII
   69   70   71   72   73   74   75   76   77   78   79