python's functions/modular programming Flashcards

understand the basics of modular programming in python

1
Q

What are decorators?

A

A decorator is a function that takes another function and extends its behavior without explicitly modifying it. Decorators are useful for adding extra functionality to functions or methods, like logging, access control, measuring execution time, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly