Monday, November 5, 2012

String reverse in python


s[::-1]

example : 
>>>s="teststring"
>>>s[::-1]

No comments:

Post a Comment