So my code words but I don't know why.
def reverse(text): rever =  text = str(text) n = len(text) - 1 text = list(text) print text final = "" while n >= 0: final += str(text[n]) n = n - 1 return final print reverse("examples")
I originally has it as n = len(text) but then I got an error that "list index is out of range"
making it len(text) -1 fixes the error but Im not sure why...
I know my code isn't neat or efficient and doesn't look like others peoples answer to this question but its the only way I could work out how to do it.
Thanks for any help