print syntax

doug at safeport.com doug at safeport.com
Thu Sep 3 12:22:14 EDT 2009


I am new to python, working by way through 'Core Python Programming'. I can find 
no description of using print with the built-in type for formatting. I think I 
have got some [most?] of it from Chun, google, and python.org. My comment is - 
it should not be that hard to find. I would suggest a link from the print syntax 
section.

What is seems to be is:

   print "format-spec" % (variable-list)

I assume the '%' is required token.



_____
Douglas Denault
http://www.safeport.com
doug at safeport.com
Voice: 301-217-9220
   Fax: 301-217-9277



More information about the Python-list mailing list