zfill( ) Function
The zfill( ) Function is used to fill the left side of the String with 0's until the complete space is filled.
x = "Hello" y = x.zfill(10) print(y)
In the above code, we have declared a String 'Hello'.
Then we have used the 'x.zfill(10)' function to allocate '10' blocks. Then fill the left side with five '0's shifting the String 'Hello' to the right.