title: Passing an array/list into a Python function
body: <p>I've  been looking at passing arrays, or lists, as Python tends to call them, into a function.</p>
  
  <p>I read something about using *args, such as:</p>
  
  <pre><code>def someFunc(*args)
      for x in args
          print x
  </code></pre>
  
  <p>But not sure if this is right/wrong. Nothing seems to work as I want. I'm used to be able to pass arrays into PHP function with ease and this is confusing me. It also seems I can't do this:</p>
  
  <pre><code>def someFunc(*args, someString)
  </code></pre>
  
  <p>As it throws up an error.</p>
  
  <p>I think I've just got myself completely confused and looking for someone to clear it up for me.</p>