?? Day6 of #100DaysOfPython ??
Surya Singh
Sr. AI/ML Consultant & Team Lead @Accenture Strategy | ex-ZS, EY | MS in ML & AI
Today, we're diving into using decorators in python!
Decorators are higher-order functions that take another function as an input and return a new function.
Decorators modify the behaviour of the input function by wrapping it inside another function without permanently modifying the input function.
This allows to execute additional functionality before and after the execution of the original function.
Let's dive deeper into decorators with the help of an example below:
How have you used decorators to increase code readability and optimization?