title: Passing functions with arguments to another function in Python?
body: <p>Is it possible to pass functions with arguments to another function in Python?</p>
  
  <p>Say for something like:</p>
  
  <pre><code>def perform(function):
      return function()
  </code></pre>
  
  <p>But the functions to be passed will have arguments like:</p>
  
  <pre><code>action1()
  action2(p)
  action3(p,r)
  </code></pre>