Operator Precedence/Boolean Logic
Andreas Röhler
andreas.roehler at online.de
Thu Jun 23 04:23:02 EDT 2016
On 23.06.2016 09:05, Steven D'Aprano wrote:
> On Thursday 23 June 2016 16:34, Andreas Röhler wrote:
>
>> Indeed, why should the result of 4 - 4 have a different truth-value than
>> 4 - 3 ?
> Because 4-4 is zero, which is "nothing",
Hmm, water freezes at zero degree celsius, because there is no temperature?
> while 4-3 is one, which is
> "something".
>
> You might as well ask why False and True have different truth values.
> Ironically, in a manner of speaking you *did* ask that, since 4-3 == True and
> 4-4 == False.
>
>
More information about the Python-list
mailing list