+ 1
Decorators
Hi, I have just done the decorater, but I can't understand what they are, all the code given by Sololearn does not work at all, they give errors on all other compilers, meaning that I can't look at the code with decorators. I have searched on google, but I can't understand what they are. Can somebody please explain me what a decorator is with a example? Thank you
3 Answers
+ 4
Danish Zubair
Decorators are difficult to understand, the best way is to play with them.
I wrote a little code for you to keep & adjust / play with.
Why don't you add a few extra attack methods and pretty up the wrapper
https://code.sololearn.com/cje5x7FFR2Ip/?ref=app
+ 3
Rik Wittkopp thank you, I'm gonna try.
+ 2
Have you tried using the search bar? Many questions cover this topic.
https://www.sololearn.com/Discuss/3054769/?ref=app
https://www.sololearn.com/Discuss/3056298/?ref=app
https://www.sololearn.com/Discuss/2688627/?ref=app
https://www.sololearn.com/Discuss/2515850/?ref=app
https://www.sololearn.com/Discuss/2549289/?ref=app