I am writing a function to take a string and reverse it. I can't work out why my code is returning a reversed string but with only half of the letters of the string passed to it.
def reverse(text):
temp = []
reverse_text = ""
for i in text:
temp.append(i)
for i in temp:
reverse_text += temp.pop()
print reverse_text