Day 5: Your Function Calls Are Not Free — Call Stack & Execution Flow
You think calling a function is cheap. It isn’t. Every function call has a cost. Today, you understand what actually happens when Python executes functions. Today’s Goal By the end of today, you will: Understand how function calls work internally Learn what a call stack is Visualize execution flow Understand performance impact of function calls The Illusion def add(a, b): return a + b add(2, 3) You think: Python just jumps into the function Reality: ...