Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70069

the logical operation confused me

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <elearn2014@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.125
X-Spam-Level *
X-Spam-Evidence '*H*': 0.78; '*S*': 0.04; 'output': 0.05; '>>>': 0.22; '&gt;&gt;&gt;': 0.24; 'message-id:@mail.gmail.com': 0.30; 'subject:the': 0.34; 'received:google.com': 0.35; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; '"not': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=O3RymKu38M4eB8XuQrKOPDFG4Q7sckIIBTUX+kZwSG0=; b=g9S9zaedcNPPb8bwwVF1w7pDNQwaBOB4wmwyiMYkfd+2UR7V6GZ+ggwzm+vuFrkuC3 dFroFlOn3ziU5h33WIMNDS4Ci0+6tu0tF8pNeucqrOI5GlLGlmgSXgYlvQ8HnPIOFoOP OA+ZueLGBPVpg7xhHzn51oO3jacngUDPTg2eCgVgCtyTYJ27kUkqm9WILMwx4oupjvDL YKyMGiuJZyoJhaZuwlcgnbNk2MVycCOowVenbZGbuqGKanSXJOgewYotPJu+tM2jKXAo +7IRpIiSvRoJ5p1oJoazx4PQN7H2zP9Na9ZHa7Y5YhWNOrDHM8ZCUse+TFv6ipPwPqkL IXbw==
MIME-Version 1.0
X-Received by 10.112.94.229 with SMTP id df5mr3547699lbb.36.1397170953036; Thu, 10 Apr 2014 16:02:33 -0700 (PDT)
Date Fri, 11 Apr 2014 07:02:33 +0800
Subject the logical operation confused me
From length power <elearn2014@gmail.com>
To python-list@python.org
Content-Type multipart/alternative; boundary=001a1135f7ac58a8d504f6b83679
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.9153.1397170954.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1397170954 news.xs4all.nl 2876 [2001:888:2000:d::a6]:41803
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:70069

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

>>> "ok" or "not ok"
'ok'
>>> "ok" and "not ok"
'not ok'
>>>

why "ok" or "not ok" output "ok"  , "ok" and "not ok"  output "not ok" ?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

the logical operation confused me length power <elearn2014@gmail.com> - 2014-04-11 07:02 +0800
  Re: the logical operation confused me Denis McMahon <denismfmcmahon@gmail.com> - 2014-04-10 23:28 +0000

csiph-web