|
A quick google search came up with this:
str = "Hello, world!"
revstr = str[::-1]
print revstr
Or (Python 2.4):
str = "Hello, world!"
print "".join(reversed(str))
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
|