title: How to return a single value instead of a tuple?
body: <p>I realise that in the below functions <code>f</code> returns a tuple, and <code>g</code> returns a list.</p>
  
  <pre><code>def f():
      return 1,2
  def g():
      return [1,2]
  a,b=f()
  c,d=g()
  </code></pre>
  
  <p>I have written a function which can handle any number of arguments. </p>
  
  <pre><code>def fun(*args):
      return args
  </code></pre>
  
  <p>These arguments are entered like the <code>f</code> function above because they are the return value from a previous function.</p>
  
  <pre><code>output = fun(other_func())
  </code></pre>
  
  <p>When more that one value is return from <code>fun</code> the individual values can be retrieved by stating something like this...</p>
  
  <pre><code>output1, output2 =  fun(other_func())
  </code></pre>
  
  <p>However, when one argument is used the output is something like below...</p>
  
  <pre><code>output = fun(other_func())
  
  (1,)
  </code></pre>
  
  <p>Is there a way when there is only one value to have it return a single element instead of a tuple but still have the functionality of being able to return more than one value?</p>