Reverse a String?
Gregory PiƱero
gregpinero at gmail.com
Sat Sep 23 17:54:32 EDT 2006
On 9/23/06, Robert Kern <robert.kern at gmail.com> wrote:
> Not in that form, no, since this already exists:
>
> text[::-1]
Wow, that's really cool! Here are my questions:
1. How long has this thing been going on? I didn't know slice even
took an extra argument like that.
2. Where can I get the lowdown on everything there is to know about
slice? Since I've obviously been living in ignorance all these years!
Thanks again,
Greg
More information about the Python-list
mailing list