Tuesday, October 19, 2010

Reverse a string, Python

def reverseString(s):
   """Reverses a string given to it."""
   return s[::-1]

No comments: