def pad_list(l, size, value=0):
    """Pads the right side of the list `l` to `size` if len(l) is less than size with `value`."""
    if len(l) >= size:
        return l

    return l + ([value] * (size - len(l)))