We don't use getter and setter methods in Python. Instead we make properties.
Properties allow us to customize what happens when you access an attribute and what happens when you assign to an attribute.
My name is Trey Hunner. I do corporate Python training for teams and I teach Python online through Python Morsels.
In Python Morsels, I publish a new Python screencast every week.
If you want to learn something new every week, join Python Morsels!Join Python Morsels ✨