seconds add zero python

print(a_number)
#OUTPUT
123
number_str = str(a_number)
#Convert `a_number` to a string


zero_filled_number = number_str.zfill(5)
#Pad `number_str` with zeros to 5 digits

print(zero_filled_number)
#OUTPUT
00123

Here is what the above code is Doing:
1. We create a variable called `a_number` and set it equal to the integer 123.
2. We create a variable called `number_str` and set it equal to the string “123”.
3. We create a variable called `zero_filled_number` and set it equal to the string “00123”.

Now let’s see how we can use the `zfill` method to pad a string with zeros to the left.