Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79048
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!87.79.20.101.MISMATCH!newsreader4.netcologne.de!news.netcologne.de!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1.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.054 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'subject:while': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '11:09': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'withdraw': 0.31; 'thanks!': 0.32; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'thank': 0.38; 'pm,': 0.38; 'even': 0.60; 'everybody': 0.60; 'love': 0.65; 'technology,': 0.70; 'condition.': 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=oNkoVBDj99IpcFTKqieOAXCmpDpQWMzPIZ6T4U6J9Zo=; b=ZhU6VTq5aEXt6ZqkuQ5ZvH9qu6tXfBF06OjQEWmu4HqNjcIDWQFudsMIgVdGoRpdEH B2WKRGfOMRNTw5nKhI07Tph4XNmVsKurNT1GWZe1A5L/ZEg+FcoR2c54vfMcSSWdX0vE aIkLutVmaMC1xadmD4t5uizK+wyYDoStxbAPFTD+7Dv38N8jjEzJQsrt81yQGDmiawIl 36rJENVRTUAudHHRgpuIkBfbwzwC3J8/kWLXEU3ByiAFhzCzowCZdeUgElTcTzazqDGb cBn4rAffz08HML0+tCivWXQ2KhhMVqtzkPqvvPTHIYEgjM+4xJIhZctnpKkDqYA9TjKK Q3+w== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.102.106 with SMTP id fn10mr1623867igb.14.1413208105871; Mon, 13 Oct 2014 06:48:25 -0700 (PDT) |
| In-Reply-To | <87d29wmas0.fsf@elektro.pacujo.net> |
| References | <loom.20141012T190458-947@post.gmane.org> <m1g2lt$8jj$1@ger.gmane.org> <mailman.14819.1413201543.18130.python-list@python.org> <87d29wmas0.fsf@elektro.pacujo.net> |
| Date | Tue, 14 Oct 2014 00:48:25 +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.14822.1413208114.18130.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1413208114 news.xs4all.nl 2952 [2001:888:2000:d::a6]:49449 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 3600 |
| X-Received-Body-CRC | 7786216 |
| Xref | csiph.com comp.lang.python:79048 |
Show key headers only | View raw
On Mon, Oct 13, 2014 at 11:09 PM, Marko Rauhamaa <marko@pacujo.net> wrote:
> Chris Angelico <rosuav@gmail.com>:
>
>> Or, even simpler: Use an active condition.
>>
>> while input('Do you like python?') not in ('yes', 'y'): pass
>
> Instead of the traditional "pull" technology, you could take advantage
> of the state-of-the-art "push" approach:
>
> print("You must love python -- everybody does!")
Nay, there is love in excess. I thank heaven there are many pythons in
England; but if thou lovest them all, I withdraw my thanks!
-- Colonel Fairfax
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: while loop - multiple condition Chris Angelico <rosuav@gmail.com> - 2014-10-13 22:59 +1100
Re: while loop - multiple condition Marko Rauhamaa <marko@pacujo.net> - 2014-10-13 15:09 +0300
Re: while loop - multiple condition Chris Angelico <rosuav@gmail.com> - 2014-10-14 00:48 +1100
csiph-web