Can someone explain me the code given below
def reverse(text): placeholder = "" for item in text: placeholder = item+placeholder return placeholder
the code is taken from this post
The exercise is about reversing the given string, i got confused and searched the forum and got the above code. It looks simple and works fine(tried using python idle) but i can't understand how does it works(reverse strings)
Replace this line with your code.