Python Interview Questions #16

Опубликовано: 15 Июль 2026
на канале: Jobi ai
85
1

Question: Explain the concept of decorators in Python.

Answer: Decorators in Python are functions or classes that modify the behaviour of other functions or methods. They wrap another function, enhancing or altering its functionality, and are denoted using the @decorator syntax above the target function.