Craig Marshall wrote: > Or, if you're *really* just trying to reverse the string, then the > following might read more easily (although it's probably longer):
> fruit = list(fruit)
> fruit.reverse()
> fruit = ''.join(fruit)
same thing, on one line:
fruit = "".join(reversed(fruit))
same thing, in one operation:
fruit = fruit[::-1]
</F>
--
http://mail.python.org/mailman/listinfo/python-list
