Is there an elegant way to pass down an argument from function1() down to a function2(), that takes several arguments?
Is there an elegant way to pass down an argument from function1() down to a function2(), that takes several arguments? Question: I have the following situation: def func1(a = 0, b = 0): return a + b**2 def func2(x): if x == ‘a’: return func1(a = 2) elif x == ‘b’: return func2(b = 2) …