palindrome iteration

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Aug 27 18:20:30 CEST 2010


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

Cheers.

Mark Lawrence.




More information about the Python-list mailing list