def _zpadlist(values: list, inputtype: str, minval: int, maxval: int) ->list:
    """Return a list of zero padded strings and perform input checks.

    Returns a list of zero padded strings of day numbers from a list of
    input days. Invalid month numbers (e.g. outside of 1-31) will raise
    an exception.

    Parameters
    ----------
    values: list(int)
        List of integers that will be zero-padded.
    inputttype: str
        String identifying the input data used in error messages.
    minval: int
        Minimum value that all elements in `values` are checked against.
    maxval: int
        Maximum value that all elements in `values` are checked against.

    Returns
    -------
    list(str)
        List of zero-padded strings (e.g. ['01', '02',..., '31']).

    Raises
    ------
    AssertionError
        If any value in the list is not within `minval<=value<=maxval`.
    """
    returnlist = []
    for value in values:
        assert int(value
            ) >= minval, 'invalid value specified for {}: {}'.format(inputtype,
            value)
        assert int(value
            ) <= maxval, 'invalid value specified for {}: {}'.format(inputtype,
            value)
        returnlist += [str(int(value)).zfill(2)]
    return returnlist
