Page 249 - AI Computer 10
P. 249

in case of false, the relational expression results into the Boolean value False. Python provides six relational
        operators for comparing two operands and these operators are:
         u Greater than (>) : This operator evaluates to True if first value is greater than second.

             Example:








         u Greater than or Equal to (>=): This operator evaluates to True if first value is greater than or equal to second.
             Example:








         u Less than (<) : This operator evaluates to True if first value is less than second.
             Example:









         u Less than or equal to (<=) : This operator evaluates to True if first value is less than or equal to second one.
             Example:








         u Equal to (==) : This operator returns true if both the values are same.
             Example:









         u Not Equal to (!=): This operator returns true if both the values are different.
             Example:








              Kno
              Knowledge Botwledge Bot

          The ASCII value of capital letters A-Z is 65 to 90, small letters is 97 to 122, and numbers 0 to 9 is 48
          to 57.



                                                                                                             115
                                                                                                             115
   244   245   246   247   248   249   250   251   252   253   254