Lecture 15 Flashcards
Decorators,
1
Q
what are decorators and why are they helpful?
A
Decorators allow us to wrap another function in order to extend the behaviour of the wrapped function, without permanently modifying it.
2
Q
what is a first class object?
A
an object that can be passed as an argumentp