Decorator Concept
In plain terms
Wrapping a function or class to extend its behavior.
Going deeper
A decorator augments or modifies the behavior of a function, method, or class without changing its code, by wrapping it. It adds behavior transparently.
Under the hood
Python decorators use @syntax; relates to the decorator design pattern of wrapping objects.
Examples
Python @decorators, logging/auth wrappers, memoization, AOP, middleware.
Think of it like...
Like gift-wrapping that adds features to a present without altering it.