Suppose I have a function def foo(A, B).
Now I have another function bar(func), where func is a function that takes only one variable. I want to pass in foo as func, but with the second variable B always fixed to 300. How can I do that?
Suppose I have a function def foo(A, B).
Now I have another function bar(func), where func is a function that takes only one variable. I want to pass in foo as func, but with the second variable B always fixed to 300. How can I do that?