You can download this code by clicking the button below.
This code is now available for download.
Returns a string filled with zeros on the left side until its length reaches the specified width.
Technology Stack : str.zfill(width)
Code Type : String processing
Code Difficulty :
def zfill(string, width=1):
return string.zfill(width)