OutlineĀ What is decorator Function as first-class objects Basics of Closure How decorator works Decorator example Property decorator The setter Introduction: what is a decorator? Python has a very special feature that is called a decorator. Decorator adds new functionality to a function without modifying it. We can also say, it is a kind of layer around an existing function that adds something new to it. Before going deep into a decorator, we shall have a quick look at python functions. Function as first class objects Functions in Python are first-class objects, which means we can use function just like
Read More