Have a variable column length in printf
cameron.pulsford at gmail.com
Sun May 31 07:58:15 CEST 2009
Hello all, I'm trying to pretty print a list, so I am doing something like
print '%3d' % integer
only I would like that 3 to be a variable, instead of hardcoded. Is this
possible, or are there any other ways to accomplish this? Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list