Skip to content

Instantly share code, notes, and snippets.

@njgibbon
Created September 14, 2019 16:12
Show Gist options
  • Save njgibbon/628d83d0524adba2d43c6a459944a4ea to your computer and use it in GitHub Desktop.
Save njgibbon/628d83d0524adba2d43c6a459944a4ea to your computer and use it in GitHub Desktop.
def reverse_1(s: str) -> str:
reversed_output = ""
for c in s:
reversed_output = c + reversed_output
return reversed_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment