simple question

Kevin@Cazabon.com kevin at cazabon.com
Mon Feb 17 23:05:13 EST 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