For some strange reason my code results in the following error message:
"Your function fails on reverse("Python!"). It returns "cba!nohtyP" when it should return "!nohtyP"."
Where are those extra c, b, and a coming from? I have tried to resubmit and alter the code a bit and closed the page and refreshed it but the extra letters are still there. Am I missing something obvious?
letters_list= def reverse(text): for n in range(0,len(text)): letters_list.append(text[(len(text)-1)-n]) return ''.join(letters_list)