I have developed a python code that is comprised of several functions, I want the output from the last function to be an input in the first function and the program should stop when a certain criterion is met!
for example:
[def f1(something1):
Block of statements
return something
def f2(something2):
Another Block of statements
return something2 ]
What I want is something2 from the second function (f2), to always be input as something1 in the first function (f1) until a stopping criterion is satisfied.
Any help/advice will be appreciated! Thanks.