The problem asks me to reverse a string without using reversed or [::-1]. I think my code should work but I keep getting the "string index out of range error". If someone could help me out, that would be great. Thanks!
def reverse(text): result = "" for i in range(len(text), 1, -1): result += text[i] return result