[Tutor] Boolean question
drbedsole at gmail.com
Wed Mar 16 22:49:05 CET 2011
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]." ?
>>> not (True or 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