do...while loops
Aahz Maruch
aahz at panix.com
Tue Feb 6 11:01:51 EST 2001
In article <mailman.981466899.30238.python-list at python.org>,
Simon Brunning <SBrunning at trisystems.co.uk> wrote:
> From: Langa Kentane [SMTP:LangaK at discoveryhealth.co.za]
>>
>> Why is is it while 1:
>> would while 2:
>> or while 3: work?
>
>Yup - any non-zero number is considered true. They wouldn't do anything
>different, though, and they just might confuse someone. (Why 2?)
Well, let's split the difference:
while 2.5:
--
--- Aahz (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Life as a contractor: when they tell you it's going to rain, sometimes
it drizzles and sometimes it pours.
More information about the Python-list
mailing list