I have a function
def input_definition(parameter_variation=None):
input_def = {}
input_def['a'] = 1
input_def['b'] = 2
input_def['c'] = 3
...
input_def['z'] = 26
# Apply the parameter variation by means of the input argument 'parameter_variation'.
# ...
# Save 'input_def' to external file with dill module.
# ...
with many parameters. I want to vary some of these parameters by giving parameter_variation to the function input_definition. I need to vary different parameters each time I call input_definition.
So one time parameter_variation contains values for a and b and another time parameter_variation contains values for c and d.
What is the best / most neat / Pythonic way to do this? Or is it perhaps better to use kwargs?