In the simplest terms...
I have a function that returns 3 values
and a function that takes 3 arguments.
They of course do their individual jobs
Is there any way to code this so that the sending function doesn't send it as a list, or that the receiving function sees it as 3 different values? So instead of
I would get
I have a function that returns 3 values
Code:
>>> def sendnum(): ... return 1,2,3
Code:
>>> def receive(a=4,b=5,c=6): ... print a,b,c
Code:
>>> sendnum() (1, 2, 3) >>> receive(11,12,13) 11 12 13
Code:
>>> receive(sendnum()) (1, 2, 3) 5 6
Code:
>>> receive(sendnum()) 1 2 3
Comment