There is a function
def summa_and_raznost(a, b): summa = a + b raznost = b - a return summa, raznost Is it possible to call a function so that not all values ​​are received, but as many as necessary, without creating a tuple with parentheses, a set or a list that needs to be parsed? for example
summa, raznost = summa_and_raznost(2, 3) # return 5, 1 and
summa = summa_and_raznost(2, 3) # return 5 If it is impossible, then how to do it differently?
my_sum, _ = sum_and_dif(2, 3)PS never use the names of built-in functions, types or reserved words as variable names -sum()- built-in function - MaxUsum_and_difdoes not "intersect" with the built-in ones, so it can be safely used ... - MaxU