Given:
a = 1 b = 10 c = 100
How do I display a leading zero for all numbers with less than two digits?
This is the output I\'m expe
Use a format string - http://docs.python.org/lib/typesseq-strings.html
For example:
python -c 'print "%(num)02d" % {"num":5}'