while loop - multiple condition

Chris Angelico rosuav at gmail.com
Wed Oct 15 01:16:58 CEST 2014


On Wed, Oct 15, 2014 at 10:04 AM, giacomo boffi <pecore at pascolo.net> wrote:
> Tim Chase <python.list at tim.thechases.com> 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



More information about the Python-list mailing list