MRAB wrote:
superpollo wrote:
...
how to reverse a string in python? must i usa a temp? like:>>> s = "ciccio" >>> l = list(s) >>> l.reverse() >>> s = "".join(l) >>> s 'oiccic' >>> ???Use slicing with a step of -1: >>> s = "ciccio" >>> s[::-1] 'oiccic'
lol bye -- http://mail.python.org/mailman/listinfo/python-list