Skip to content

Instantly share code, notes, and snippets.

@CesarNog
Created January 23, 2015 12:41
Show Gist options
  • Save CesarNog/c152c288f47b4ee1a3da to your computer and use it in GitHub Desktop.
Save CesarNog/c152c288f47b4ee1a3da to your computer and use it in GitHub Desktop.
This function reserve any string given. #python #reverseString
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