Created
September 14, 2019 15:47
-
-
Save njgibbon/601bd26cd00749e2c00f41275b44d7e6 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_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