I'm a bit of a newbie in Python.
I'm writing a little piece of code in order to find the minimum of a function:

```
import os,sys,matplotlib,pylab
import numpy as np
from scipy.optimize import fmin

par = [2., 0.5, 0.008]
x1 = 0.4
f2_2 = lambda x, param: param[0] * x**2 + param[1] * x + param[2]
xmin = fmin(f2_2,x1,args = (par))

print xmin

```

it should be very simple, however I am getting this error:

```
"Traceback (most recent call last):

  File "prova.fmin.py", line 9, in <module>

 xmin = fmin(f2_2,x1,args = (par))

  File "/usr/lib/python2.7/dist-packages/scipy/optimize/optimize.py", line 257, in fmin

 fsim[0] = func(x0)

  File "/usr/lib/python2.7/dist-packages/scipy/optimize/optimize.py", line 176, in function_wrapper

 return function(x, *args)

TypeError: <lambda>() takes exactly 2 arguments (4 given)"

```

Could someone help me in understanding this please?