Python Day 9: Your Functions Can Be Rewritten — Decorators & Runtime Behavior

You think a function is fixed once defined. It is not. In Python, functions are objects—and can be modified at runtime. Today, you understand how decorators actually work under the hood. Today’s Goal By the end of today, you will: Understand how decorators work internally Learn function wrapping Understand closures Use decorators for real-world patterns The Illusion def greet(): print("hello") You think: greet is just a function Reality: greet is an object that can be passed, modified, and replaced ...

May 1, 2026 · 2 min · Nitin S Kulkarni

Python 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: ...

April 27, 2026 · 2 min · Nitin S Kulkarni