I'm completely new to programming and am finding this section 15: Practice makes Perfect really difficult. I know it's meant to be a recap, I've applied myself and attempted to figure out the exercises as much as possible but just feel as though I am missing something quite obvious in this one and I just don't know what it is. I've read through the forum for ideas but want to try avoid just copying somebody else's answer.
At the minute I feel as though my code is close but I am getting stuck in an infinite loop.
I think it's something to do with the while loop, which I'm not completely sure if I've used it correctly.
def reverse(text): word = " " length = len(text) for i in range(0, length): while length >= 0: word += text[(length - 1) - i] if length == 0: break return word print reverse("wahahahahaha@!@!@!@")
Thanks in advance for any help, as I mentioned I'm finding this section quite difficult.