+ 5
About @decor
Can soneone explain how it works and maybe give me an easy example of it?
2 Answers
+ 5
The @decorator passes the function to another function as an argument or parameter so that you can use it in the execution process of the function that it has been passed on thats how i understand it
https://code.sololearn.com/cRaB2Fw1H16B/?ref=app
+ 4
here you can learn about it and how it is work with full explanation.
https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/decorator