invert or reverse a string... warning this is a rant

Fredrik Lundh fredrik at pythonware.com
Fri Oct 20 04:04:54 EDT 2006


Hendrik van Rooyen wrote:

>> 'a man a plan a canal panama' is not a palindrome
>
> not if spaces count -

which they do if you rely on a single reverse operation (my point was
that it takes a bit more work than that to check for a palindrome).

</F> 






More information about the Python-list mailing list