Hi everyone, either something weird is going on with my code or this lesson is broken. I am on lesson 15. Practice makes perfect.
Here is my code:
reverse = " "
length = int(len(string)) - 1
for char in string:
character = string[length]
reverse = reverse + character
length = length - 1
I've tested the code and it works, but Codecademy gives me the following error message:
Oops, try again. Your function fails on reverse("Python!"). It returns " !nohtyP" when it should return "!nohtyP".
It returns exactly what it is requesting but it does not let me proceed.