title: One function to print the return value of many functions with different sets of parameters in Python
body: <p>I have a number of functions <code>func_1</code>, <code>func_2</code>, ... , <code>func_n</code>, each has its own number of parameters, but all of them return either a numeric value or <code>None</code>.</p>
  <p>I want to write a universal printing function that will have as the first parameter the name of one of <code>func_1</code>, <code>func_2</code>, ... , <code>func_n</code>. It should print the return value if it is not <code>None</code>.</p>
  <p>Ideally, it should look something like this:</p>
  <pre><code>    def universal_print(func, maybe_something_else_I_don't_know):
          if func is not None:
              print(func())    
  </code></pre>
  <p>I don't understand how to pass parameters of the function to be printed to <code>universal_print</code> given that each function has its own number and type of parameters.</p>
  <p>Is my problem solvable in general? If yes, how?</p>