Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79047 > unrolled thread

Re: while loop - multiple condition

Started byChris Angelico <rosuav@gmail.com>
First post2014-10-14 00:46 +1100
Last post2014-10-14 00:46 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: while loop - multiple condition Chris Angelico <rosuav@gmail.com> - 2014-10-14 00:46 +1100

#79047 — Re: while loop - multiple condition

FromChris Angelico <rosuav@gmail.com>
Date2014-10-14 00:46 +1100
SubjectRe: while loop - multiple condition
Message-ID<mailman.14821.1413208016.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web