In our previous Python tutorial, we have explained how to Automate Everything with Python. In this tutorial, you will learn about Decorators in Python.
In python, Decorators is a design pattern that allows to modify the functionality of a function by wrapping it in another function. It takes the original function as an argument and returns as extended version of it, means without permanently modifying it.
In Python, functions are treated as objects which means that functions can be used or passed as arguments. (more…)