Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'assign': 0.07; 'parameter': 0.09; 'subject:question': 0.10; 'cc:addr:python- list': 0.11; 'python': 0.11; 'evaluating': 0.16; 'record,': 0.16; 'wrote:': 0.18; '<': 0.19; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'print': 0.22; 'skip': 0.24; 'question': 0.24; 'cc:2**0': 0.24; '>': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'evaluation': 0.30; 'message- id:@mail.gmail.com': 0.30; 'bunch': 0.31; 'equivalent.': 0.31; 'values.': 0.31; 'this.': 0.32; 'maybe': 0.34; "i'd": 0.34; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'similar': 0.36; 'example,': 0.37; 'skip:& 10': 0.38; 'pm,': 0.38; 'skip:& 20': 0.39; 'how': 0.40; 'expression': 0.60; 'more': 0.64; 'answer.': 0.68; 'prompt': 0.68 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xIcu2Vkhv3QJL2OLsdtzxAv7KguQHwtfiX5MocTBlzM=; b=U4pPOllDcUVeS+e8P2TqrFm1fZC18Dswo0eB7fOlhy64s9MPAzy+GeYCJedKvrOwjM 8SAXp9jFa0ZeJ2spGMc1+PlT4KJ42o+VNXnuby/8zo5/iGS0MgrqwO39y/HzttEdyNNE /0rgFnlJ+OkvFoTWh8WvKe/B5U+gO0tAWapqRutTQICBbBxzUHz3LkeEK6HEpRATa21m akSqxvqwsTMcQP6Zy5ZWrBZHig4smrdb/trYsWbzwCy4ncq/nBUB1X/Ytn9p/4zykY5a biwBNqnHJ+o28fTmIyEbr5LsZKKyBuzojMQ1lkJlHX4KqNTFAKIGptjktKvmOI5ZgKgp ft5A== MIME-Version: 1.0 X-Received: by 10.50.109.228 with SMTP id hv4mr16763636igb.13.1412552029722; Sun, 05 Oct 2014 16:33:49 -0700 (PDT) In-Reply-To: References: Date: Sun, 5 Oct 2014 18:33:49 -0500 Subject: Re: Practice question From: Skip Montanaro To: Seymore4Head Content-Type: multipart/alternative; boundary=089e013a214ef5602f0504b565a8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1412552037 news.xs4all.nl 2894 [2001:888:2000:d::a6]:53802 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78729 --089e013a214ef5602f0504b565a8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Oct 5, 2014 6:07 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 <=3D x < 30 And it wants a similar expression that is equivalent. Maybe 30 > x >=3D 15 ? Seems more "similar" to the original expression than the other possibilities. 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=C2=A2... Skip --089e013a214ef5602f0504b565a8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Oct 5, 2014 6:07 PM, "Seymore4Head" <Seymore4Head@hotmail.i= nvalid> wrote:
>
> For the record, I don't want a hint.=C2=A0 I want the answer.
> I see a practice question is similar to this.
> 15 <=3D x < 30=C2=A0 And it wants a similar expression that is e= quivalent.

Maybe

=C2=A0=C2=A0=C2=A0 30 > x >=3D 15

? Seems more "similar" to the original expression = than the other possibilities.

As to how to try it out, bring up the Python prompt, assign = various values to x, and keep evaluating the possibilities. To simplify eva= luation off a bunch of alternatives, consider defining a function which tak= es x add a parameter and print out the various expression values. I'd g= ive a concrete example, but don't has a prompt available on my phone...=

Just my 2=C2=A2...

Skip

--089e013a214ef5602f0504b565a8--