Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79047
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.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 | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.046 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; 'bug.': 0.09; 'subject:while': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'pass': 0.26; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; '13,': 0.31; 'probably': 0.32; 'thanks!': 0.32; 'received:google.com': 0.35; 'pm,': 0.38; 'that,': 0.38; 'skip:u 10': 0.60; 'account': 0.65; 'introduce': 0.78; 'fortunately,': 0.84; 'to:none': 0.92 |
| 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:cc :content-type; bh=hDT3e84yMDvNHmfztwQ/+S0VYwIcwilovqfMI4pb1ZI=; b=sAvfTReAYqLhofza9UBQBoVTohuQ2pbcGsoYmoy5VlXdyWqMd+HkCSXJgkUcQeUyRl wzussgEgEsY9oprwL3YxVa0Qj/uSHSwsP/cfRGtFT+Z47/4vbrqG5P6sla+Ee6FdQmH1 cg5VFshbKkBw0LR8AU2vnOqgEvOkTd1+QY33RJlz9eo2K9zjzbM29X6YNVJr+NtS4cR5 3pWIaN2duXvG8XVaTfeMm6whrRo0tGLRa4i34GqO+SBHIY8HQ89DkiWttEgqca0Nzeb7 Lrn7VrDLUlNH3U7erWLEFZFcZ2WHce2Q2Yc5sRQhXKOXViFRQd0h1EZdB/3SI4v+UrAH xhXA== |
| MIME-Version | 1.0 |
| X-Received | by 10.42.92.129 with SMTP id t1mr35148956icm.59.1413208013287; Mon, 13 Oct 2014 06:46:53 -0700 (PDT) |
| In-Reply-To | <CANc-5UxHXky7f4ALJheUvH10KPzUNMMeLAD3XSZb=zdEnN-gjg@mail.gmail.com> |
| References | <loom.20141012T190458-947@post.gmane.org> <m1g2lt$8jj$1@ger.gmane.org> <CAPTjJmrQ4utEQa_2EUFAWLY4R8knodkq6WK09YD3asUMvmUyiQ@mail.gmail.com> <CANc-5UxHXky7f4ALJheUvH10KPzUNMMeLAD3XSZb=zdEnN-gjg@mail.gmail.com> |
| Date | Tue, 14 Oct 2014 00:46:53 +1100 |
| Subject | Re: while loop - multiple condition |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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.14821.1413208016.18130.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1413208016 news.xs4all.nl 2933 [2001:888:2000:d::a6]:47488 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:79047 |
Show key headers only | View raw
On Mon, Oct 13, 2014 at 11:10 PM, Skip Montanaro
<skip.montanaro@gmail.com> wrote:
> On Mon, Oct 13, 2014 at 6:59 AM, Chris Angelico <rosuav@gmail.com> wrote:
>>
>> while input('Do you like python?') not in ('yes', 'y'): pass
>
>
> Unfortunately, you probably have to account for people who SHOUT:
>
> while input('Do you like python?').lower() not in ('yes', 'y'): pass
>
> <wink>
Welcome to collaborative editing. I make a change and introduce a bug.
Fortunately, someone else can, just like that, fix that bug. Thanks!
:)
ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: while loop - multiple condition Chris Angelico <rosuav@gmail.com> - 2014-10-14 00:46 +1100
csiph-web