initial_state = 40
def funct_1(x):
return y
def funct_2(y):
return z
def main():
funct_1(x)
funct_2(y)
for i in range(10):
main()
In the first iteration, I want input to funct1 i.e. x = initial_state and from the second iteration onwards, I want output of funct_2 i.e. z becomes input to funct_1. Please let me know how can I implement this in python.