What is a decorator in Python?
-
A
A callable that takes a function as an argument, extends its behavior, and returns a new callable
-
B
A special comment syntax that annotates function signatures for type checking
-
C
A built-in design pattern that replaces multiple inheritance
-
D
A Python keyword that formats string output