Question About Logic In Python

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


> On Wed, 21 Sep 2005 09:03:00 +1000, Steven D'Aprano 
> <steve at REMOVETHIScyber.com.au> 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 
True/False.

Terry J. Reedy






More information about the Python-list mailing list