I would like to assign two quantities to the variables min and max, depending on their value. Suppose f is a function which returns an integer value. Is there any way I can do something like
min, max = f(1), f(2)
which accounts for the values of f(1) and f(2)? Clearly the above assigns f(1) to min and f(2) to max regardless of their value.