Reverse - error doesn't make sense


#1



https://www.codecademy.com/pt/courses/python-intermediate-en-rCQKw/1/1?curriculum_id=4f89dab3d788890003000096

It gives me an error message saying the correct answer i got was wrong because it was supposed to be the correct one i got:

Ops, tente outra vez. Your function fails on reverse("Python!"). It returns " !nohtyP" when it should return "!nohtyP".

i expected the code to go run, but it didn't

Replace this line with your code. 
here is my code

def reverse(text):
    to_reverse = " "
    length = len(text)
    for i in range(0, length):
        to_reverse = to_reverse + str(text)[length-i-1]
    return to_reverse


#2

Intialize this to an empty string so there are no extra characters in the return value.