25. Decorators [Python 3 Programming Tutorials]

Опубликовано: 18 October 2024
на канале: codebasics
26,968
477

In this tutorial, I explain decorators in a very simple way by going over how to measure execution time of function using decorators. They serve as a wrapper to original function but does a wonderful job of avoiding code duplication and not cluttering original code with additional logic.

Exercise: https://github.com/codebasics/py/blob...

Do you want to learn technology from me? Check https://codebasics.io/ for my affordable video courses.

Code in this tutorial is available here: https://github.com/codebasics/py/blob...
Website: http://codebasics.io/
Facebook:   / codebasicshub  
Twitter:   / codebasicshub