palindrome iteration

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Fri Aug 27 10:43:16 EDT 2010


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 ?



More information about the Python-list mailing list