question about True values

Tim Chase python.list at tim.thechases.com
Wed Oct 25 15:37:01 EDT 2006


> So I suppose
> 
> if (10 > 5)
> 
> would be the same as
> 
> if (10 > 5) == True
> 
> because (10 > 5) does evaluate to "True".

Yes...and similarly,

if ((10 > 5) == True) == True

for the same reason...as does

if (((10 > 5) == True) == True) == True

as does... :*)

-tkc






More information about the Python-list mailing list