def padding_zero(int_to_pad, lim):
    """
    Adds a leading, or padding, zero to an integer if needed. Returns the int
    as a str

    Parameters
    ------------
    int_to_pad : int
        The integer to add padding/leading zero to, if needed

    lim : int
        Used to check to see if the param int needs a padding zero added to it.
        Ex:
        int_to_pad = 11, lim = 10 -> no padding needed, '11' is returned
        int_to_pad = 9, lim = 10 -> padding needed, '09' is returned

    Returns
    ------------
    result : str
        int_to_pad cast as a string, regardless if a padding 0 was added to it
    """
    str_2_pad = str(int_to_pad)
    str_lim = str(lim)
    while (len(str_2_pad) < len(str_lim)):
        str_2_pad = '0' + str_2_pad

    return str_2_pad