title: Beginner Python spam.py
body: <p>I am new to python, just got the learning python book and got stuck with the spam.py in the command line. The book says to make a file named spam.py and then ask python to run this by typing
  %python spam.py
  I have added the python to my PATH as it was C:\Python27 so I can call Python in the Windows CMD, but this just will not run. The error I receive is </p>
  
  <pre><code>&gt;&gt;&gt;python spam.py
    File "&lt;stdin&gt;", line 1
      python spam.py
                ^ 
  SyntaxError: invalid syntax 
  </code></pre>
  
  <p>I appreciate any help that you can give.</p>