Question · Python course · Module 3: Object-Oriented Programming

Decorators

A decorator in Python is:

Answer options

  • A function that modifies the behavior of another function
  • A comment in the code
  • A global variable
  • A data type

You can check the correct answer by solving this task in the CodeWorlds game.