palindrome iteration

MRAB python at mrabarnett.plus.com
Fri Aug 27 12:53:42 EDT 2010


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



More information about the Python-list mailing list