Simple string reverse in pyton

How to reverse a string?

s = ‘abc’
s = s[::-1]
print s

Simple!

VN:F [1.1.7_509]
Rating: 8.0/10 (1 vote cast)

Leave a Reply

You must be logged in to post a comment.