Hi iam suprised about the function returns cba!nohtyP instead of !nohtyP. I dont have any idea where the cba comes from.I write the code in Pycharm and in Pycharm the function return the correct solution.

Can you explain me why the function writes cba in front of the solution string.

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

Your function fails on reverse("Python!"). It returns "cba!nohtyP" when it should return "!nohtyP".

It should return !nohtyP

``python`

value=[]

def reverse(text):

total= len(text)-1

for n in text:

value.append(text[total])

total=total-1

solution=""

for n in value:

solution=solution+str(n)

return solution