Home / Python / Day 7: Intermediate Python / Decorators

Decorators

Decorators modify or enhance functions without changing their source code.

Decorators

A decorator is a function that wraps another function, adding behavior before/after execution. They use the @syntax sugar.