Multiple return values in python
<p>I want to change a python function to return two values. How do I achieve that without affecting any of the previous function calls which only expect one return value?</p>

<p>For eg.</p>

<p>Original Definition:</p>

<pre><code>def foo():
    x = 2
    y = 2
    return (x+y)
</code></pre>

<p>sum = foo()</p>

<p>Ne Definition:</p>

<pre><code>def foo():
    x = 2
    y = 2
   return (x+y), (x-y)
</code></pre>

<p>sum, diff = foo()</p>

<p>I want to do this in a way that the previous call to foo also remains valid?
Is this possible?</p>
