Created
May 16, 2014 01:02
-
-
Save supritashankar/d6a59f207fa8453418d8 to your computer and use it in GitHub Desktop.
Best way to reverse a string in 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
def reverse(_string): | |
return ''.join(reversed(_string)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment