title: How to expand a list to function arguments in Python
body: <p>Is there syntax that allows you to expand a list into the arguments of a function call?</p>
  
  <p>Example:</p>
  
  <pre><code># Trivial example function, not meant to do anything useful.
  def foo(x,y,z):
     return "%d, %d, %d" %(x,y,z)
  
  # List of values that I want to pass into foo.
  values = [1,2,3]
  
  # I want to do something like this, and get the result "1, 2, 3":
  foo( values.howDoYouExpandMe() )
  </code></pre>