title: How to pass parameter in another method?
body: <p>So I have a method.</p>
  <pre><code>def func(y,t,a):
      z=y
      dydt=[t*z+a] 
      return dydt
  </code></pre>
  <p>I want to use this method in other function like this:</p>
  <pre><code>def main_func(func,arg=()):
      sol=func(1,2,arg[0])
      return sol
  a=1
  main_func(func,arg=(a))
  </code></pre>
  <p>It works but It will not work with the method which is like that</p>
  <pre><code>def new_func(y,t,a,b):
      z=y
      dydt=[t*z+a+b] 
      return dydt
  a=1
  b=2
  main_func(new_func,arg=(a,b))
  </code></pre>
  <p>Got the error: <code>TypeError: new_func() missing 1 required positional argument: 'b'</code></p>
  <p>So, I have only thing to modify <code>main_func</code>.But I want to generalised the the function <code>main_func</code> for work with any function so that it will take other parameters <code>func(y,t,a, b,.....)</code></p>