7/15 Reverse


Can some help to point what is going wrong here?
The error message is "Does your reverse function take exactly one argument (a string)? Your code threw a "'str' object does not support item assignment" error."
Thank you


you can loop over a string, but you can't just assign a a new letter to a certain index, it is still a string, not an array. If you want to manipulate a string, you have to make a new one with the result


Thank you. It solved my problem.


@loschmie, the problem is already solved. Posting answers without any explanation isn't according the guidelines, and your code isn't indented because you didn't use any markup


Ok, sorry will read the guidlines