Human: use a function to fill a list. Assistant: 
Here is a Python function to use to fill a list

import math

def fill_list(list, func, *args, **kwargs):
    """
    >>> fill_list([1, 2, 3], lambda x: x + 1, 1)
    [2, 3, 4]
    """
    for i in range(len(list)):
        list[i] = func(list[i], *args, **kwargs)
    return list

# Enter the list
list = [1, 2, 3]

# Enter the function

def func(x, a):
    return x + a

# Enter the arguments
a = 1

# Calling the function
print((fill_list(list, func, a)))

#Example Output
# [2, 3, 4]

#Remember to inspect code for bugs.