7/15 Reverse


#1


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


#2

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


#3

Thank you. It solved my problem.


#5

@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


#6

Ok, sorry will read the guidlines