[Tutor] Dictionaries

Michael Janssen mi.janssen at gmail.com
Fri Jan 27 15:05:20 CET 2006

On 1/26/06, John Fouhy <john at fouhy.net> wrote:

> >>> for name in pairs:
> ...  print '%*s --> %*s' % (maxKey, name, maxValue, pairs[name])

thanks for pointing out the '*' syntax. Ignorant as I am I have had to
write things like

   print '%%%ss --> %%%ss' % (maxKey, maxValue) % (name, pairs[name])

for years. Thanks :-)

More information about the Tutor mailing list