Jan-07-2020, 08:06 AM
(Jan-07-2020, 05:52 AM)sbabu Wrote: I need to save the previous result and print it. So I can understand how the program is working.
There are other possibilities to understand recursion - for example visualisation. There is Thonny which is suited for beginners and has built-in stack visualisation for understanding recursion (first screenshot on their webpage); line-by-line debugger etc. Maybe it's worth a try for better understanding what is going on.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.