Question About Logic In Python

Terry Reedy tjreedy at
Wed Sep 21 21:24:07 CEST 2005

> On Wed, 21 Sep 2005 09:03:00 +1000, Steven D'Aprano 
> <steve at> wrote:
>>In practice, how often do you really care that your truth values have the
>>specific values 0 and 1 rather than anything false and anything true? In
>>what circumstances?

Another example: you have an exam with N questions and score the answers 
True or False.  The number correct is the sum of the True/False scores.  I 
have done things like this in other languages with explicit 1/0 for 

Terry J. Reedy

More information about the Python-list mailing list