title: Passing a list of parameters into a Python function
body: <p>how would I pass an unknown number of parameters into a function? I have a function defined in the following way</p>
  
  <pre><code>def func(x, *p):
  return ...
  </code></pre>
  
  <p>I'm trying to pass in a list of values to use as parameters. I tried using a list and a tuple but the function always returns zero. Has anyone got any advice?
  Thanks</p>