arbitrary number of arguments in a python function
<p>I'd like to learn how to pass an arbitrary number of args in a python function, so I wrote a simple sum function in a recursive way as follows:</p>

<pre><code>def mySum(*args):
  if len(args) == 1:
    return args[0]
  else:
    return args[-1] + mySum(args[:-1])
</code></pre>

<p>but when I tested <code>mySum(3, 4)</code>, I got this error: </p>

<pre><code>TypeError: unsupported operand type(s) for +: 'int' and 'tuple'
</code></pre>

<p>Does anyone has an idea about this and gimme some clue to correct it?</p>
