range() is not the best way to check range?
Grant Edwards
grante at visi.com
Tue Jul 18 11:27:19 EDT 2006
On 2006-07-18, tac-tics <tactics40 at gmail.com> wrote:
> Grant Edwards wrote:
>> for pete's sake use the comparison operator like god intended.
>>
>> if 0 <= i <= 10000:
>
> I'm assuming you used Python's compound comparison as opposed to the
> C-style of and'ing two comparisons together to emphasize the fact it is
> god's chosen way of doing this ;-)
Exactly!
--
Grant Edwards grante Yow! HUGH BEAUMONT died
at in 1982!!
visi.com
More information about the Python-list
mailing list