Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79046
| References | <loom.20141012T190458-947@post.gmane.org> <m1g2lt$8jj$1@ger.gmane.org> <CAPTjJmrQ4utEQa_2EUFAWLY4R8knodkq6WK09YD3asUMvmUyiQ@mail.gmail.com> |
|---|---|
| Date | 2014-10-13 07:10 -0500 |
| Subject | Re: while loop - multiple condition |
| From | Skip Montanaro <skip.montanaro@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14820.1413202212.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
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>
Skip
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: while loop - multiple condition Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-13 07:10 -0500
csiph-web