title: What's ending comma in print function for?
body: <p>This code is from <a href="http://docs.python.org/2/tutorial/errors.html#predefined-clean-up-actions" rel="noreferrer">http://docs.python.org/2/tutorial/errors.html#predefined-clean-up-actions</a></p>
  
  <pre><code>with open("myfile.txt") as f:
      for line in f:
          print line,
  </code></pre>
  
  <p>What I don't understand is what's that <code>,</code> for at the end of print command. </p>
  
  <p>I also checked doc, <a href="http://docs.python.org/2/library/functions.html#print" rel="noreferrer">http://docs.python.org/2/library/functions.html#print</a>.</p>
  
  <p>Not understanding enough, is it a mistake?(it seems not. it's from the official tutorial). </p>
  
  <p>I am from ruby/javascript and it's unusual for me.</p>