Exploring property() in Action
So far, you’ve learned how to use Python’s
property() built-in function to create managed attributes in your classes. You used
property() as a function and as a decorator and learned about the differences between these two approaches.
You’ve also learned how to create read-only, read-write, and write-only attributes. In the following sections of the course, you’ll code a few examples that will help you get a better practical understanding of common use cases of
property(), starting with validating input values.
Become a Member to join the conversation.