simple question

Kevin@Cazabon.com kevin at cazabon.com
Tue Feb 18 05:05:13 CET 2003


why not:

print string.zfill(10, 3)

Kevin.


"les" <abidnego25 at yahoo.com> wrote in message
news:653cf871.0302171440.1a013f73 at posting.google.com...
> consider this,
>
> >>> print "%-3d" % 10
> 10
>
> how do I get python to print "010" instead?
>
> thanks






More information about the Python-list mailing list