Newbie Q: efficiency of list -> string conversion
Erik Johnson
ejohnso9 at earthlink.net
Mon Nov 19 19:55:38 EST 2001
s = "string"
l = list(s)
l.reverse()
rv = ""
for i in xrange(len(s)):
rv += l[i]
print rv
More information about the Python-list
mailing list