The ______ symbol along with the name of the decorator function can be placed above the definition of the function to be decorated works as an alternate way for decorating a function.
1 point
#
$
@
&
Answers
Answered by
0
The "@" symbol along with the name of the decorator function can be placed above the definition of the function to be decorated works as an alternate way for decorating a function.
About "@" sympol in decorating a function.
- The decorator's name is preceded by the @ sign, which is followed by the body of your function or class, which starts on the next line.
- A decorator is a function that alters the functionality of another function without impacting it directly.
- An alternative approach for decorating a function is to place the "@" symbol above the definition of the function to be decorated, followed by the name of the decorator function.
Similar questions
Hindi,
3 months ago
Geography,
7 months ago
Math,
7 months ago
English,
1 year ago
Social Sciences,
1 year ago