STR Softwares interview question

What are Python decorators and how do you use them?

Interview Answer

Anonymous

22 May 2025

I explained that decorators are used to modify the behavior of a function without changing its code, and gave an example using @login_required.