+ 1

What are the differences?

^Title. We are given an example in python course, however it lacked some features so it's a bit changed. So: https://code.sololearn.com/cfTFzNplCTPx/#py What makes it any different than this: https://code.sololearn.com/cK246MVa5AF2/#py

28th Mar 2020, 6:10 AM
Joshua Cronin
Joshua Cronin - avatar
1 Answer
+ 1
Decorators provide a way to modify functions using other functions. This is ideal when you need to extend the functionality of functions that you don't want to modify. But also they do the same thing.
29th Mar 2020, 8:42 AM
Mir-Abgar Abrahamyan
Mir-Abgar Abrahamyan - avatar