Question PRG-PY-0055
MediumWhat is a decorator in Python?
- A.
A type hint
- B.
A comment syntax
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
What is a decorator in Python?
A type hint
A comment syntax
Sign up free to see the answer and a step-by-step explanation.
A function that takes a function and returns a new function that adds behaviour
A class attribute