print syntax

doug at doug at
Thu Sep 3 18:22:14 CEST 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 My comment is - 
it should not be that hard to find. I would suggest a link from the print syntax 

What is seems to be is:

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

I assume the '%' is required token.

Douglas Denault
doug at
Voice: 301-217-9220
   Fax: 301-217-9277

More information about the Python-list mailing list