title: end=' ' python syntax error
body: <p>Have been to trying to learn python from a couple of days, encountered a syntax error but seems to work in the tutorial that I am learning from, here's the code </p>
  
  <pre><code>def func(a):
      for i in range(a,10):
          print(i,end=' ')
  </code></pre>
  
  <p>func(2)</p>
  
  <p>And the error </p>
  
  <pre><code>print(i,end=' ')
             ^
  </code></pre>
  
  <blockquote>
    <p>SyntaxError: invalid syntax</p>
  </blockquote>