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


Groups > comp.lang.python > #70069

the logical operation confused me

Date 2014-04-11 07:02 +0800
Subject the logical operation confused me
From length power <elearn2014@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.9153.1397170954.18130.python-list@python.org> (permalink)

Show all headers | 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