You can download this code by clicking the button below.
This code is now available for download.
The zfill() method fills the string with leading zeros to the specified width.
Technology Stack : Built-in function
Code Type : String function
Code Difficulty : Intermediate
def zfill(string, width):
return string.zfill(width)