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