Created
September 14, 2019 16:12
-
-
Save njgibbon/628d83d0524adba2d43c6a459944a4ea to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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