zfill() function is type of padding function. This function fills only with ‘0’. Takes the resultant width of the string as argument. This is useful to pad a numeric string values.
zfill() function is type of padding function. This function fills only with ‘0’. Takes the resultant width of the string as argument. This is useful to pad a numeric string values.