Created
July 14, 2011 21:43
-
-
Save douglasmiranda/1083532 to your computer and use it in GitHub Desktop.
Simple string reverse (Python)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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