top of page
Writer's pictureNazeeruddin

Decorators in Python?

Updated: Feb 10, 2023

Decorators are used to modify the behavior of function or class. In Decorators, functions are taken as the argument into another function and then called

inside the wrapper function.



output:
</h1>
Hello World
</h1>

Where you implemented decorator in your project code.?

decorators are easy to add log statements, to any function call.



output:
sum function call started
sum is  30
sum function call ended 


Thanks for reading!!!

Your Rating and Review will be appreciated!!

Twitter: @LearnerLandmark

104 views0 comments

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Commenting has been turned off.
bottom of page