title: SyntaxError: invalid syntax (print function)
body: <pre><code>&gt;&gt;&gt; x=[]
  &gt;&gt;&gt; for i in range(10):
       x.append(i)
  print(x)
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>I'm working with Python 3.5. I can't seem to get the print function working when it's not part of a loop. "print" gets highlighted as the source of the syntax error, but I can't seem to isolate the cause of the error. It prints perfectly well when part of a while or for loop. It's probably caused by a really silly oversight, and I would really appreciate if somebody could point it out.</p>