title: Python will not read sys.argv
body: <pre><code>    import sys
  
      print sys.argv[1]
  </code></pre>
  
  <p>hi,</p>
  
  <p>this may seem very basic but I can't get Python to read in anything from the command line.
  thats the code above and what I type is:</p>
  
  <pre><code>    myfile.py helloworld
  </code></pre>
  
  <p>and what i get back is:</p>
  
  <pre><code>    IndexError: list index out of range
  </code></pre>
  
  <p>It seemed to work once for me but won't work any more, and I've tried uninstalling and reinstalling Python and it still doesnt work.</p>
  
  <p>So my question is, am I doing anything wrong? or have I just broken Python?</p>
  
  <p>Thanks for any help</p>
  
  <p>Using:
  Windows 7
  Python 2.7.2</p>