Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78729
| 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 | <skip.montanaro@gmail.com> |
| 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 | <h2j33adothf9uctcdp5psqk2cclr01961r@4ax.com> |
| References | <h2j33adothf9uctcdp5psqk2cclr01961r@4ax.com> |
| Date | Sun, 5 Oct 2014 18:33:49 -0500 |
| Subject | Re: Practice question |
| From | Skip Montanaro <skip.montanaro@gmail.com> |
| To | Seymore4Head <Seymore4Head@hotmail.invalid> |
| Content-Type | multipart/alternative; boundary=089e013a214ef5602f0504b565a8 |
| Cc | Python <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14620.1412552037.18130.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Oct 5, 2014 6:07 PM, "Seymore4Head" <Seymore4Head@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.
Maybe
30 > x >= 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¢...
Skip
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 19:02 -0400
Re: Practice question Roy Smith <roy@panix.com> - 2014-10-05 19:06 -0400
Re: Practice question Ned Batchelder <ned@nedbatchelder.com> - 2014-10-05 19:14 -0400
Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 20:07 -0400
Re: Practice question Ned Batchelder <ned@nedbatchelder.com> - 2014-10-05 21:25 -0400
Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-07 08:41 +0000
Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-05 18:33 -0500
Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-05 19:47 -0700
Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-06 08:04 -0500
Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-06 09:23 -0700
Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-07 03:52 +1100
Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-06 10:05 -0700
Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-07 04:13 +1100
Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-06 20:49 +0000
Re: Practice question "Redge @ Versalytics.com" <versalytics@gmail.com> - 2014-10-06 20:54 -0400
Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-08 09:14 -0700
Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-09 03:23 +1100
Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-08 11:27 -0500
Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-08 09:41 -0700
Re: Practice question Terry Reedy <tjreedy@udel.edu> - 2014-10-05 19:47 -0400
Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 20:18 -0400
Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-07 08:48 +0000
Re: Practice question C Smith <illusiontechniques@gmail.com> - 2014-10-07 05:43 -0700
Re: Practice question C Smith <illusiontechniques@gmail.com> - 2014-10-05 16:24 -0700
Re: Practice question Denis McMahon <denismfmcmahon@gmail.com> - 2014-10-07 01:46 +0000
Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-06 22:06 -0400
Re: Practice question alister <alister.nospam.ware@ntlworld.com> - 2014-10-09 15:28 +0000
csiph-web