question about True values

Georg Brandl g.brandl-nospam at gmx.net
Sat Oct 28 06:27:13 EDT 2006


J. Clifford Dyer wrote:

>  >>> (1 > 0) < 1
> False
>  >>> 1 > 0 < 1
> True
>  >>> 1 > (0 < 1)
> False
>  >>> 10 > (0 < 1)
> True

I hope you know why this works the way it does.

Georg



More information about the Python-list mailing list