Skip to content

Instantly share code, notes, and snippets.

@njgibbon
Created September 14, 2019 15:47
Show Gist options
  • Save njgibbon/601bd26cd00749e2c00f41275b44d7e6 to your computer and use it in GitHub Desktop.
Save njgibbon/601bd26cd00749e2c00f41275b44d7e6 to your computer and use it in GitHub Desktop.
def reverse_0(s: str) -> str:
reversed_output = ""
s_length = len(s)
for i in range(s_length-1, 0-1, -1):
reversed_output = reversed_output + s[i]
return reversed_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment