Skip to content

Instantly share code, notes, and snippets.

@wusuopubupt
Created December 24, 2013 06:55
Show Gist options
  • Save wusuopubupt/8109683 to your computer and use it in GitHub Desktop.
Save wusuopubupt/8109683 to your computer and use it in GitHub Desktop.
Reverse a string in a pythonic way~
'hello world'[::-1]
#'dlrow olleh'
#http://stackoverflow.com/questions/931092/reverse-a-string-in-python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment