[pythonvis] Problem finding info on print statement

  • From: "Richard Dinger" <rrdinger@xxxxxxxxxx>
  • To: <pythonvis@xxxxxxxxxxxxx>
  • Date: Tue, 13 May 2014 10:07:27 -0700

Regarding ‘think python’ chapter 1 on using the help system

Al noted at yesterday’s meeting that the help system did nothing for the print 
statement.  I think that is because print is deprecated and they would like to 
promote the print function used in Python 3.

You can find information on print in the docs provided with python.  From the 
start menu, open the python submenu and select python manuals.  Then open 
python language reference, then simple statements, arrow down to print and open 
it.

What you need to know to use print is that the print statement takes one or 
more comma separated expressions that are evaluated, converted to strings and 
printed.  In the output each output expression is separated by a single space.  
If a trailing comma is included, the newline is not output and the next print 
will append to the end of the line.

Richard

Other related posts: