Practice question
C Smith
illusiontechniques at gmail.com
Mon Oct 6 01:24:03 CEST 2014
14<x<=29
On Sun, Oct 5, 2014 at 4:14 PM, Ned Batchelder <ned at nedbatchelder.com> wrote:
> 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
More information about the Python-list
mailing list