basic if stuff- testing ranges

Donn Ingle donn.ingle at gmail.com
Sun Nov 25 22:33:12 EST 2007


> you mean : 0 < x < 20 ?
Yes. I had gotten the impression that there was some Python form of:
if NUMBER test VAR test NUMBER:

Part of the question was to discover if I was smoking my socks :)

> x in range(1,20) ?
Sure, that's okay, but it has clarity issues, and is calling a func.

>> but then again (imho) the Python docs are like a tangled jungle...
> <something smug, refrained/>
Well, I said it was MHO and if it was easier (for me) to find answers in the
docs I'd have an easier time of it. 

\d




More information about the Python-list mailing list