X-Received: by 10.66.249.231 with SMTP id yx7mr15434898pac.24.1412563625470; Sun, 05 Oct 2014 19:47:05 -0700 (PDT) X-Received: by 10.50.119.73 with SMTP id ks9mr96705igb.12.1412563625365; Sun, 05 Oct 2014 19:47:05 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!uq10no4646119igb.0!news-out.google.com!bc9ni17237igb.0!nntp.google.com!h18no1956851igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sun, 5 Oct 2014 19:47:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.18.216; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui NNTP-Posting-Host: 59.95.18.216 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9e674b54-92e8-469b-ba68-da593fc8564a@googlegroups.com> Subject: Re: Practice question From: Rustom Mody Injection-Date: Mon, 06 Oct 2014 02:47:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:78736 On Monday, October 6, 2014 5:04:11 AM UTC+5:30, Skip Montanaro wrote: > On Oct 5, 2014 6:07 PM, Seymore4Head wrote: > > For the record, I don't want a hint.=A0 I want the answer. > > I see a practice question is similar to this. > > 15 <=3D x < 30=A0 And it wants a similar expression that is equivalent. > Maybe > =A0=A0=A0 30 > x >=3D 15 > ? Seems more "similar" to the original expression than the other possibil= ities. > 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... An interesting data-point. We have a here a poster who's asked some 20 or so python questions and still seems not to know how to use the interpreter interactively. Sorry Seymore if this sounds condescending -- its not a complaint against you but against those who treat the print statement/expression as kosher for newbies. Imagine someone who has driven a car for a month but ha= s no clue about the basic rule of keep-left (or right).