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


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

Re: while loop - multiple condition

Started bySkip Montanaro <skip.montanaro@gmail.com>
First post2014-10-13 07:10 -0500
Last post2014-10-13 07:10 -0500
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 Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-13 07:10 -0500

#79046 — Re: while loop - multiple condition

FromSkip Montanaro <skip.montanaro@gmail.com>
Date2014-10-13 07:10 -0500
SubjectRe: while loop - multiple condition
Message-ID<mailman.14820.1413202212.18130.python-list@python.org>

[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

[toc] | [standalone]


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


csiph-web