I'm supposed to reverse the text that goes into the function. I was just trying different things and this worked. I still don't know why it does. Can someone please explain to me how the text that goes in actually gets reversed? Thank you.
def reverse(text): answer = '' for letter in text: answer = letter + answer return answer print reverse("abcd")