title: Looping from the end of a string
body: <p>I'm a Python beginner and in one of our class exercises we were given a solution that I don't really understand. </p>
  
  <p>The question: </p>
  
  <blockquote>
    <p>Program that will reverse a string with a loop. </p>
  </blockquote>
  
  <p>Here is the solution:</p>
  
  <pre><code>string = "Hello World"
  s = ""
  for ch in string:
      s = ch + s
  print(s)
  </code></pre>
  
  <p>I am confused as to why this loop begins at the end of the string. As I understand it the new string should be the same as it will loop from the beginning. Can anyone explain why?</p>