+ 5

About @decor

Can soneone explain how it works and maybe give me an easy example of it?

1st Nov 2018, 8:01 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
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
1st Nov 2018, 9:22 AM
Mbrustler
Mbrustler - avatar
+ 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
1st Nov 2018, 3:35 PM
Maninder $ingh
Maninder $ingh - avatar