basic if stuff- testing ranges

J. Clifford Dyer jcd at sdf.lonestar.org
Sun Nov 25 17:33:54 EST 2007


On Sun, 2007-11-25 at 20:49 +0200, Donn Ingle wrote:
> Sheesh, I've been going spare trying to find how to do this short-hand:
> if 0 > x < 20: print "within"
> 

<smartAssAnswer>
  if 0 > x: print "within"
</smartAssAnswer>




More information about the Python-list mailing list