[Tutor] OT: [was] A question about None
dn
PyTutor at DancesWithMice.info
Sun Aug 22 04:29:02 EDT 2021
On 22/08/2021 20.22, Alan Gauld via Tutor wrote:
> while True:
> value = distance_sensor.get_distance_cm()
> if not value: continue # back to the while
>
> if value > 20:
> ...
> elif value < 20:
> ...
> if value == 20:
> ????
Have cold and fuzzy-head. Do you (more clearly) recall...
back in the good?bad, old days, wasn't there (a language with) an
if-statement that went something like:
if expression is positive, or zero, or negative:
goto positive-branch, zero-branch, negative-branch
--
Regards,
=dn
More information about the Tutor
mailing list