why no "do : until"?
Steve Lamb
grey at despair.rpglink.com
Sat Dec 30 00:00:33 EST 2000
On Fri, 29 Dec 2000 21:52:21 -0700, Bjorn Pettersen <pbjorn at uswest.net> wrote:
>henry_crun3583 at my-deja.com wrote:
>> do :
>> R=Themistor.ReadResistance()
>> T=R_to_Temperature(R)
>> until (T >=25)
>while 1:
> R=Themistor.ReadResistance()
> T=R_to_Temperature(R)
> if T >=25: break
Or, for those who don't like while 1:
while T < 25:
R=Thermistor.ReadResistance()
T=R_to_Temerature()
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
ICQ: 5107343 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
More information about the Python-list
mailing list