title: Same mistake but different error report. Why?
body: <p>Why Python reports about different errors for the same reason, the programs with the 1 and 2 lines of code?</p>
  
  <p>I mean:</p>
  
  <pre><code>print(1
  </code></pre>
  
  <p>gives </p>
  
  <pre><code>Error: unexpected EOF while parsing
  </code></pre>
  
  <p>but</p>
  
  <pre><code>a = 1+1
  print(1
  </code></pre>
  
  <p>gives </p>
  
  <pre><code>Error: invalid syntax
  </code></pre>
  
  <p>same problem - but error message is different - reason?</p>
  
  <p>sys.version_info(major=3, minor=2, micro=0, releaselevel='final',serial=0)</p>