def stop_it(): #python 2.7 print('stop') stop_it() stop_it()
we need to stop infinite recursion
k = 0 def stop_it(): print('stop') k += 1 if k < 5: stop_it() stop_it()
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!