Louis I. answered 06/03/19
Computer Science Instructor/Tutor: Real World and Academia Experienced
The good news is that we can accomplish this without conditional programming constructs by using format characters .... %03d - numeric values would be formatted with a width of 3, with leading 0's for values less than 100:
>>> "%03d" % num
'088'
>>> print("%03d" % num)
088
>>> num = 4
>>> print("%03d" % num)
004