How to pad zeroes to a string?

What is a Pythonic way to pad a numeric string with zeroes to the left, i.e. so the numeric string has a specific length?

1
19

Leave a Comment