print syntax

D

doug

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
(e-mail address removed)
Voice: 301-217-9220
Fax: 301-217-9277
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,161
Latest member
GertrudeMa
Top