- List item
Hi, Here is my problem i don't manage to valid my code
Please help me
This is the error:
"Oops, try again. Hey now! No using [::-1] or reversed()."
There are the instructions: Define a function called reverse that takes a string textand returns that string in reverse. For example: reverse("abcd") should return "dcba". You may not use reversed or [::-1] to help you with this. You may get a string containing special characters (for example, !, @, or #). And finally my code: def reverse(text): result = "" reversed_text = reversed(text) for char in reversed_text: result += char print result return result