On 10/5/14 7:02 PM, Seymore4Head 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.
So the right answer is 15<= x or x <30

No, "15 <= x < 30" is equivalent to "15 <= x and x < 30".

but one of the other answers is
not (15<= x and x <30)

You are speaking ambiguously.  Which did you mean:
a) one of the other answers isn't "15 <= x and x < 30", or:
b) one of the other answers is "not (15 <= x and x < 30)" ?

--
Ned Batchelder, http://nedbatchelder.com

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to