I have a Python function that returns multiple values. As an example for this question, consider the function below, which returns two values.
def function():
...
return x, y
I know this function can return both values x, y = function()
. But is it possible for this function to only return the second value?
In MATLAB, for example, it would be possible to do something like this: ~, y = function()
. I have not found an equivalent approach in Python.