palindrome iteration

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Fri Aug 27 16:43:16 CEST 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