Python

Unpacking tuples as arguments

In Python you can unpack tuples as arguments for functions, and that includes using the returned values of other functions, as seen below:

def function_A():
    ...
    return X,Y
def function_B(Arg1,Arg2,Arg3...)
    ...
    return answer

function_B(*function_A(),Arg3...)

Even several functions can be called and nested this way. For whatever reason python seems to run on less memory and faster the higher the degree of nesting of functions. ¯\_(ツ)_/¯