On Mon, 13 Feb 2006 18:51:11 +0000 in comp.lang.python, rtilley <[EMAIL PROTECTED]> wrote:
>s = list('some_random_string') >print s >s.reverse() >print s >s = ''.join(s) >print s > >Surely there's a better way to do this, right? How about s = "some random string" print s s = s[::-1] print s HTH, -=Dave -=Dave -- Change is inevitable, progress is not. -- http://mail.python.org/mailman/listinfo/python-list