while loop - multiple condition

Chris Angelico rosuav at gmail.com
Mon Oct 13 15:46:53 CEST 2014

On Mon, Oct 13, 2014 at 11:10 PM, Skip Montanaro
<skip.montanaro at gmail.com> wrote:
> On Mon, Oct 13, 2014 at 6:59 AM, Chris Angelico <rosuav at 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!


More information about the Python-list mailing list