Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created July 14, 2011 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasmiranda/1083532 to your computer and use it in GitHub Desktop.
Save douglasmiranda/1083532 to your computer and use it in GitHub Desktop.
Simple string reverse (Python)
string = 'my test'
string = string[::-1]
print string #tset ym
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment