richie at entrian.com (Richie Hindle) wrote:
Guido's time machine strikes again:
... "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...
Guido's time machine strikes again:
foo, bar, quux = 1, 2, '3'
print ("A template string - here: %s it goes\n" % foo +
print ("A template string - here: %s it goes\n" % foo +
... "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...
the wheel ;-)