title: While Reverse String Loop
body: <pre><code>def reverse(x):
      word = ""
      b = len(x)
      while b &gt;= 0:
  
          word = word + x[b:]
          b = b - 1
      print word
  </code></pre>
  
  <p>Was trying to make reverse function, when input "why" outputs </p>
  
  <pre><code>yhywhy
  </code></pre>
  
  <p>Why?</p>