Andrew Dalke adalke at
Fri Nov 14 00:16:50 CET 2003

Gerrit Holl
> Are you looking for:
> 20:58:42:232:0  >>> def ispalindrome(s):
> 20:58:42:232:0  ...  return s == s[::-1]

No.  The OP wanted to strip special characters and
normalize case, so that
  A man, a plan, a canal -- Panama!
would be allowed as a palindrome.

                    dalke at

More information about the Python-list mailing list