computers/the-call-stack-how-your-computer-remembers-where-to-come-back-to.md
The call stack: how your computer remembers where to come back to
When one function calls another, how does the computer remember where to come back to? It keeps a pile of frames called the call stack: every call adds one, every return removes one.
Step through a recursive function and watch the stack grow and shrink, then see why Python tracebacks read the way they do and what a RecursionError really means.