title: Python pass in variable assignments through a function wrapper
body: <p>So I know that you can wrap a function around another function by doing the following.</p>
  
  <pre><code>def foo(a=4,b=3):
     return a+b
  def bar(func,args):
     return func(*args)
  </code></pre>
  
  <p>so if I then called</p>
  
  <pre><code>bar(foo,[2,3])
  </code></pre>
  
  <p>the return value would be 5.</p>
  
  <p>I am wondering is there a way to use bar to call foo with foo(b=12) where bar would return 16?</p>
  
  <p>Does this make sense?  Thank you so much for your time ahead of time! And sorry for asking so many questions. </p>