[Tutor] Range of float value

Kent Johnson kent37 at tds.net
Thu Feb 8 19:04:15 CET 2007


Luke Paireepinart wrote:
> Kent Johnson wrote:
>> Luke Paireepinart wrote:
>>> Kent Johnson wrote:
>>>> You can't generate all the float values in a range. (OK, you 
>>>> probably could, but it would not be practical or useful.) You can 
>>>> test for a value in a range, e.g.
>>>> if 48.35 <= a <= 48.45:
>>>>   
>>> Kent:
>>> Why does this work?
>> It is explicitly supported in Python. See
>> file:///C:/Python25/Doc/ref/comparisons.html
> Do you mean http://docs.python.org/ref/comparisons.html ?

Jeez. I try so hard to bust out of here and every turn I take just 
brings me back to file://.

Now where did I put that internet, anyway?

Kent



More information about the Tutor mailing list