print with variable justification (with *)

Why Tea ytlim1 at gmail.com
Sat Nov 18 15:59:49 EST 2006


print format % values
An optional minimum width of the conversion, specified using one or
more digits or an asterisk (*), which means that the width is taken
from the next item in values

That's from one of O'reilly's books. But there is no example and I
couldn't get it to work by trials and errors. Does anyone have a
working example?

/Why Tea




More information about the Python-list mailing list