Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'core,': 0.09; 'subject:while': 0.09; 'cc:addr:python-list': 0.11; 'ans': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'non- english': 0.16; 'procedure?': 0.16; 'think?': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; "haven't": 0.24; 'cc:2**0': 0.24; '15,': 0.26; 'equivalent': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'tim': 0.29; 'message- id:@mail.gmail.com': 0.30; 'chase': 0.31; 'writes:': 0.31; 'implemented': 0.33; 'received:google.com': 0.35; 'question,': 0.38; 'improved': 0.60; 'full': 0.61; 'led': 0.72; 'as:': 0.81; 'turkish': 0.84; 'yes!': 0.91; '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=4J9nHdvcHYBLqbgy01Flq3QeevpWwn7QXj1GCQGGt+Y=; b=OUTqhppBZQzuX2+X+IKvqZFMB9T9wawQVaxbGBal+aA67h/lwZsVvLdkp3b7sCZWBG lZtuiSV4q2wARKlHAmyugpmRkZYcyVVSGYN2Tz6YWOC2wGhRsx+HjOSu0OSzQGf1IuNM i98hVgd1DTMr3oiaHvw0BCeRmJe203CTuTSy+5D6gdmUUXcpHqe43hyRo0xQxaOhF1mV rZnEGPKLcLoozTtpgidXp8yBiuRF3UnfJpk8ZGNsNqc11kVKx5h51p80QiY+TnNnbcJy p2MKZj52b3d9X9rAbYSa7OQh6eAkVFIrE+RrcC1Xa5ZW3h2BenJkyxIhnFDkgxFadqSg Pieg== MIME-Version: 1.0 X-Received: by 10.42.100.84 with SMTP id z20mr8041613icn.31.1413328618721; Tue, 14 Oct 2014 16:16:58 -0700 (PDT) In-Reply-To: <87oatel0c5.fsf@pascolo.net> References: <878uklcd3r.fsf@elektro.pacujo.net> <87oatel0c5.fsf@pascolo.net> Date: Wed, 15 Oct 2014 10:16:58 +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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413328621 news.xs4all.nl 2877 [2001:888:2000:d::a6]:56323 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79123 On Wed, Oct 15, 2014 at 10:04 AM, giacomo boffi wrote: > Tim Chase writes: > >> On 2014-10-12 22:16, Marko Rauhamaa wrote: >>> is equivalent with >>> >>> while ans.lower()[0] != 'y': >>> ans = input('Do you like python?') >> >> And still better improved with >> >> while ans[:1].lower() != 'y': >> ans = input('Do you like python?') > > yok is Turkish for an EMPHATIC NO > (or, at least, that's what I was led to think many years ago) Corrupted core, are you ready to start the procedure? What do you think? Interpreting vague answer as: Yes! If your program misinterprets a non-English response to an English question, that's not critical. It just means you haven't implemented full i18n. :) ChrisA