def list_padding(lst, target_length, fill_with=0):
    """
    pad a list with 0 (by default) to a given length
    :param lst: list to be padded
    :param target_length: target length for the padded list
    :param fill_with: element to pad
    :return: padded list
    """
    return lst + [fill_with] * (target_length - len(lst))