<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 04/10/2014 04:02 PM, length power
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAOmh463=QOBR4DbLDowSeqhKi_vnGtoJDwg8Lk3iiwmhqhffiQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">
        <div>>>> "ok" or "not ok"<br>
          'ok'<br>
          >>> "ok" and "not ok"<br>
          'not ok'<br>
          >>><br>
          <br>
        </div>
        why "ok" or "not ok" output "ok"  , "ok" and "not ok"  output
        "not ok" ?<br>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    You are probably confusing yourself with the string "not ok".  That
    string, and any other non-empty string is considered true<br>
    >>> bool("not ok")<br>
    True<br>
    >>> bool("ok")<br>
    True<br>
    <br>
    perhaps you meant<br>
    >>> not "ok"<br>
    False<br>
    <br>
    <br>
    <br>
    Once past that possible confusion, the return value of the <b>and</b>
    and <b>or</b> operators are explained here:<br>
        <a class="moz-txt-link-freetext" href="https://docs.python.org/release/2.5.2/lib/boolean.html">https://docs.python.org/release/2.5.2/lib/boolean.html</a><br>
    <br>
    Gary Herron<br>
  </body>
</html>