[Tutor] Boolean question
Donald Bedsole
drbedsole at gmail.com
Wed Mar 16 22:49:05 CET 2011
Hi Jack,
On Wed, Mar 16, 2011 at 1:55 AM, Jack Trades <jacktradespublic at gmail.com> wrote:
'and' evaluates one argument at a time and returns immediately if the
argument is False.
>
And "or" works in the inverse manner? It "evaluates one argument at
a time and returns immediately if the argument is [True]." ?
For example,
>>> not (True or False)
>>> False
The first argument was "True", so "True" was returned and negated by
the "not" with a final result of "False" for the expression.
Is this correct?
More information about the Tutor
mailing list