Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 44)
44.
What is the purpose of the decorator?
To add comments to the code.
To create nested functions.
To modify or extend the behavior of functions or methods.
To define default values for function parameters.
Answer: Option
Explanation:
A decorator in Python is used to modify or extend the behavior of functions or methods.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.