[Tutor] if...elif question
alan.gauld@bt.com
alan.gauld@bt.com
Wed, 3 Oct 2001 22:22:15 +0100
> > elif percent >= 60 < 70:
> evaluates "percent>=60" and then compares that against 70.
Hmm, yes, you're right since the >= and < have the same operator
precedence it would evaluate the >= first since its leftmost.
So my earlier answer is wrong in detail but right in principle.
Apologies for any slight confusion it may have caused
- the fix was OK tho'.
To make some some amends I'll cite the page in the manuals
with the full precedence list to save anyone looking for it...
$PYTHON/Doc/ref/summary.html
Alan g