optional arguments function
<p>I am searching how I could use optional arguments in python.
I have read <a href="http://stackoverflow.com/questions/1585247/python-optional-parameters">this question</a> but it is not clear to me.
Lets say I have a function f that can take 1 or more arguments to understand time series. Am i obliged to specify the number of arguments and set default values for each argument?
What I aim to do is being able to write a function this way:</p>

<p>simple function:</p>

<pre><code>def f(x,y):
    return x + y
#f(1,2) returns 3
</code></pre>

<p><strong>What i want is also f(1,2,3) to return me 6 and f(7) returning me 7</strong></p>

<p><strong>Is it possible to write it without setting a predefined number of mandatory/optional parameters?
Is it possible to write it without having to set default values to 0 ?
How to write this function?</strong></p>

<p>Its a simple example with numbers but the function i need to write is comparing a set of successive objects. After comparison is done, the data set will feed a neural network.</p>

<p>Thanks for reading.</p>

<p><strong>EDIT</strong>:
Objects I am feeding my function with are tuples like this (float,float,float,bool,string)</p>
