import numpy as np def fun_arg_test(k, *args): y = np.sum(args) * k return y y = fun_arg_test(1000, 1, 2, 3) print('y = ', y)