<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
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”.
<What do you expect to happen instead?>
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