Question · Python course · Module 3: Object-Oriented Programming
Property Decorator
What is the @property decorator used for?
Answer options
- Creating a class method
- Creating a getter for an attribute
- Deleting an attribute
- Creating a constructor
You can check the correct answer by solving this task in the CodeWorlds game.