i got this error: Oops, try again. Your code looks a bit off--it threw a "string index out of range" error. Check the Hint if you need help!
I need help with this. I don't understand why my code doesn't work ): please help thanks!
Replace this line with your code. def reverse(text): text = str(text) index = len(text) + 1 string = "" while index >= 0: string = string + text[index] index -= 1 else: return string