palindrome iteration

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Aug 27 13:28:06 EDT 2010


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! :)

Cheers.

Mark Lawrence.




More information about the Python-list mailing list