title: How to pass list elements as arguments
body: <p>I want to pass elements of list as function arguments like this:</p>
  <pre><code>def foo(a, b, c):
      # do something
  
  list = [1, 2, 3]
  foo(list)
  </code></pre>
  <p>I can't use <code>foo(list[0], list[1], list[2])</code>, because I don't know how many elements the list has and how many arguments the function takes.</p>