title: How to associate parameters with a function object?
body: <p>I am new to python and I find the "even functions are objects" thing really cool, so I was just playing with functions in the PyShell. The following code worked fine.</p>
  
  <pre><code>def add_num(a,b):
    c = a + b
    return c
  
  x = add_num
  x(5,2)
  </code></pre>
  
  <p>I was wondering whether we can store the parameters when we are assigning x = add_num. So that whenever we call x() it adds a and b (here 5 and 2) and returns the result. x = add_num(5,2) won't work since add_num(5,2) actually calls the function and returns 7.</p>