Once we reverse each character, how are we going to reprint the word? so for each reverse character I get, i will put it into a list and then I will iterate through that list and print each on a single line and no end space
def reverseString():
word = input("Gimme a word and I will reverse the word: ")
low = 0
high = len(word) - 1
for i in range(len(word) - 1):
while low < high:
word[i] = word[len(word) - i]
print(word[i], end="")
I am not really sure if I should add each reversing character into a list and print out that list. Thank you so much. The error I keep getting is that string index is out of range. I would really appreciate any help!