title: Getting an invalid syntax error
body: <p>Apologies in advance for what I know will be a simple problem. I'm a total beginner to Python, but have decided to use it to write a mapreduce doing sentiment analysis.</p>
  
  <p>I have taken a python file from this link: <a href="http://www.alex-hanna.com/tworkshops/lesson-6-basic-sentiment-analysis/" rel="nofollow">http://www.alex-hanna.com/tworkshops/lesson-6-basic-sentiment-analysis/</a> to give me guidance and am trying to run it. The code for the particular thing I have problems with is:</p>
  
  <pre><code>…
  if len(sys.argv) &amp;lt; 2:
     print "Usage: avgNReduce.py "
     sys.exit(0)
  …
  </code></pre>
  
  <p>The error is: </p>
  
  <pre><code>   if len(sys.argv) &amp;lt; 2:
                         ^
     SyntaxError: invalid syntax
  </code></pre>
  
  <p>I'm assuming this is a basic problem to resolve, but despite googling it I don't really know how I'm meant to fix this. I've tried using a colon instead of a semi colon and have ensured the ampersand was correct from the copying over. Any ideas?</p>