Created
August 8, 2023 17:03
-
-
Save uruskan/1c51d2b32e4501d6bb906585dfafa320 to your computer and use it in GitHub Desktop.
This file contains 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 FirstReverse(strParam): | |
ay = [] # Create an empty array | |
for char in strParam: | |
ay.append(char) # Add each character to the array | |
reversed_str = "" # Initialize an empty string to store the reversed string | |
i = len(ay) - 1 | |
while i >= 0: | |
reversed_str += ay[i] # Concatenate each character to the reversed string | |
i -= 1 | |
return reversed_str | |
# Keep this function call here | |
print(FirstReverse(input())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment