palindrome iteration

MRAB python at mrabarnett.plus.com
Fri Aug 27 19:46:56 CEST 2010


On 27/08/2010 18:28, Mark Lawrence wrote:
> On 27/08/2010 17:53, MRAB wrote:
>> On 27/08/2010 17:20, Mark Lawrence wrote:
>>> On 27/08/2010 15:43, Bruno Desthuilliers wrote:
>>>> Dave Angel a écrit :
>>>> (snip)
>>>>
>>>>> or (untested)
>>>>> def is_palindrom(s):
>>>>> s = s.lower()
>>>>> return s == s[::-1]
>>>>>
>>>>
>>>>
>>>> Right, go on, make me feel a bit more stupid :-/
>>>> Who's next ?
>>>
>>> It could be worse, try responding to issue 9702. :)
>>>
>> As a wise man once said: Ay caramba! :-)
>
> Isn't that a syntax error? Shouldn't it be ¡Ay caramba! :)
>
I stand (OK, sit) corrected.



More information about the Python-list mailing list