I need to run calc(a,b) 10 times but after the first iteration, I want to pass it's output which is a tuple as a parameter.
def test(a,b, count = 1):
if count == 10:
return
cr = calc(a,b)
return test(cr[0],cr[1], count+1)
print(test(10,4)) returns None
returnmeansreturn None, and this returned value is propagated to the original caller.test(10,4)to return? And please give the definition ofcalcalso, so that your question becomes Minimal, Complete, and Verifiable - stackoverflow.com/help/mcve