Hello, I am wondering why I need the while statement in my code for it to work. Without the while statement it will only reverse like 2 or 3 letters from the list, then stop. I just don't understand what it is doing. With the while statement it appears to run correctly and passes.
lst =  def reverse(text): y = "" for n in text: lst.append(n) while len(lst) > 0: for x in lst: y = y + lst[len(lst)-1] del lst[len(lst)-1] print lst print y return y reverse("Hello")