Importing an output from another function
Byte
eoinrogers at gmail.com
Fri Mar 17 15:58:38 EST 2006
Now what do I do if Func1() has multiple outputs and Func2() requires
them all to give its own output, as follows:
import random
def Func1():
choice = ('A', 'B', 'C')
output = random.choice(choice)
output2 = random.choice(choice)
return output
return output2
def Func2(item1, item2):
print item1, item2
output1 = Func1()
Func2(output1)
Thanks in advance,
-- /usr/bin/byte
More information about the Python-list
mailing list