Steven D'Aprano <[EMAIL PROTECTED]> writes:
> >>> ''.join(list(reversed("some string")))
> 'gnirts emos'

''.join(reversed('some string')) should work, without building the
intermediate list.

I generally don't remember the ::-1 syntax so the above would occur to
me sooner.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to