skip.montanaro at gmail.com
Mon Oct 6 01:33:49 CEST 2014
On Oct 5, 2014 6:07 PM, "Seymore4Head" <Seymore4Head at hotmail.invalid> wrote:
> For the record, I don't want a hint. I want the answer.
> I see a practice question is similar to this.
> 15 <= x < 30 And it wants a similar expression that is equivalent.
30 > x >= 15
? Seems more "similar" to the original expression than the other
As to how to try it out, bring up the Python prompt, assign various values
to x, and keep evaluating the possibilities. To simplify evaluation off a
bunch of alternatives, consider defining a function which takes x add a
parameter and print out the various expression values. I'd give a concrete
example, but don't has a prompt available on my phone...
Just my 2¢...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list