title: reverse from an argument
body: <p>We start with another empty string <code>t</code>. Then, considering each character of <code>s</code> in turn, add that character to the front of <code>t</code>.</p>
  
  <p>After considering all of the characters in <code>s</code>, <code>t</code> is a copy of <code>s</code>, but in reverse order.      </p>
  
  <pre><code>import sys
  n= sys.argv[1]
  i =0
  while i &lt; len(n):
      print n[::-1]
      i += 1
  </code></pre>
  
  <p>I don't know what to do with <code>t</code>. The code above works - prints argument <code>ih</code> to <code>hi</code> but prints <code>hi</code> five times. I just want it to print <code>hi</code> once on one line.</p>