Created
January 23, 2015 12:41
-
-
Save CesarNog/c152c288f47b4ee1a3da to your computer and use it in GitHub Desktop.
This function reserve any string given. #python #reverseString
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 reverseString(st): | |
rev = "" | |
for i in range(0 ,len(st)): | |
rev += st[(len(st) -1) - i] | |
return rev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment