I have a function with two optional parameters:
def func(a=0, b=10): return a+b
Somewhere else in my code I am doing some conditional a
This might work:
def f(**kwargs): a = get(kwargs, 0) b = get(kwargs, 10) return a + b