I want to call the function multiple time and use it's returned argument everytime when it's called. For example:
def myfunction(first, second, third):
return (first+1,second+1,third+1)
1st call: myfunction(1,2,3)
2nd call is going to be pass returned variables: myfunction(2,3,4) and loop it until defined times. How can I do such loop? Thank you!
for i in range(n): print myfunction(i,i+1,i+2)