[Tutor] if...elif question
Wed, 3 Oct 2001 17:35:09 -0400 (EDT)
On Wed, 3 Oct 2001 firstname.lastname@example.org wrote:
> > > 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...
Actually, if you dig around some more, you'll find that it does special-case
Ignacio Vazquez-Abrams <email@example.com>