We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

str.zfill

zfill(width)

Return the numeric string left filled with zeros in a string of length width. The original string is returned if width is less than len(s). New in version 2.2.2.