FAQ

richie at entrian.com (Richie Hindle) wrote:
Guido's time machine strikes again:
foo, bar, quux = 1, 2, '3'
print ("A template string - here: %s it goes\n" % foo +
... "Also multiple values: %s, %s\n" % ( bar, quux ) +
... "Quoting percent (%s) sings probably not needed...\n" % '%')
A template string - here: 1 it goes
Also multiple values: 2, 3
Quoting percent (%) sings probably not needed...
Well, all right. I'll find something more useful to do than repainting
the wheel ;-)

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 8 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedSep 10, '02 at 7:35p
activeSep 16, '02 at 8:15p
posts8
users6
websitepython.org

People

Translate

site design / logo © 2022 Grokbase