Skip to content

Instantly share code, notes, and snippets.

@robrocker7
Last active December 20, 2015 23:29
Show Gist options
  • Save robrocker7/6212753 to your computer and use it in GitHub Desktop.
Save robrocker7/6212753 to your computer and use it in GitHub Desktop.
def reverse_string(string):
new_string = []
for i in range(len(string)):
new_string.append(string[-(i+1)])
new_string = ''.join(new_string)
return new_string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment