Reverse - error doesn't make sense


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


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