Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'bug.': 0.09; 'subject:while': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'pass': 0.26; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; '13,': 0.31; 'probably': 0.32; 'thanks!': 0.32; 'received:google.com': 0.35; 'pm,': 0.38; 'that,': 0.38; 'skip:u 10': 0.60; 'account': 0.65; 'introduce': 0.78; 'fortunately,': 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=hDT3e84yMDvNHmfztwQ/+S0VYwIcwilovqfMI4pb1ZI=; b=sAvfTReAYqLhofza9UBQBoVTohuQ2pbcGsoYmoy5VlXdyWqMd+HkCSXJgkUcQeUyRl wzussgEgEsY9oprwL3YxVa0Qj/uSHSwsP/cfRGtFT+Z47/4vbrqG5P6sla+Ee6FdQmH1 cg5VFshbKkBw0LR8AU2vnOqgEvOkTd1+QY33RJlz9eo2K9zjzbM29X6YNVJr+NtS4cR5 3pWIaN2duXvG8XVaTfeMm6whrRo0tGLRa4i34GqO+SBHIY8HQ89DkiWttEgqca0Nzeb7 Lrn7VrDLUlNH3U7erWLEFZFcZ2WHce2Q2Yc5sRQhXKOXViFRQd0h1EZdB/3SI4v+UrAH xhXA== MIME-Version: 1.0 X-Received: by 10.42.92.129 with SMTP id t1mr35148956icm.59.1413208013287; Mon, 13 Oct 2014 06:46:53 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Oct 2014 00:46:53 +1100 Subject: Re: while loop - multiple condition From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413208016 news.xs4all.nl 2933 [2001:888:2000:d::a6]:47488 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79047 On Mon, Oct 13, 2014 at 11:10 PM, Skip Montanaro wrote: > On Mon, Oct 13, 2014 at 6:59 AM, Chris Angelico 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 > > Welcome to collaborative editing. I make a change and introduce a bug. Fortunately, someone else can, just like that, fix that bug. Thanks! :) ChrisA