What kind of program is this

Peter Otten __peter__ at web.de
Wed Oct 4 08:30:45 CEST 2006


Dennis Lee Bieber wrote:

> ##aJAPy = "%s %s %s" % ('J' 'A' 'Py','','')
> #   That should fail -- three format codes, and five output values

No. 'JAPy' is  a single string, oddly written:

>>> 'J' 'A' 'Py'
'JAPy'

Peter



More information about the Python-list mailing list