Created
September 15, 2019 14:56
-
-
Save ChaitanyaBaweja/43d2f0ef7f0c92da24f37dd06fd4d3f7 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_string(original_string): | |
temp_list = list(original_string) | |
temp_list.reverse() | |
reversed_string = "".join(temp_list) | |
return reversed_string | |
original_string = "ABCDE" | |
print("Original String : ", original_string) | |
print("Reversed String : ", reverse_string(original_string)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment